PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.8.1
GiveWP – Donation Plugin and Fundraising Platform v4.16.8.1
4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 All 254 releases
give / src / Receipt / LineItem.php

LineItem.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.8.1, at src/Receipt/LineItem.php

63 lines 942 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\Receipt;
4
5 /**
6 * Class LineItem
7 *
8 * This class represent receipt line item as object.
9 *
10 * @package Give\Receipt
11 * @since 2.7.0
12 */
13 class LineItem
14 {
15 /**
16 * ID.
17 *
18 * @since 2.7.0
19 * @var int $donationId
20 */
21 public $id;
22
23 /**
24 * Label.
25 *
26 * @since 2.7.0
27 * @var int $donationId
28 */
29 public $label;
30
31 /**
32 * Value.
33 *
34 * @since 2.7.0
35 * @var int $donationId
36 */
37 public $value;
38
39 /**
40 * Icon.
41 *
42 * @since 2.7.0
43 * @var int $donationId
44 */
45 public $icon;
46
47 /**
48 * LineItem constructor.
49 *
50 * @param string $id
51 * @param string $label
52 * @param string $value
53 * @param string $icon
54 */
55 public function __construct($id, $label, $value, $icon = '')
56 {
57 $this->id = $id;
58 $this->label = $label;
59 $this->value = $value;
60 $this->icon = $icon;
61 }
62 }
63