DonationReceipt.php
4 years ago
LineItem.php
4 years ago
Receipt.php
4 years ago
Section.php
4 years ago
UpdateReceipt.php
4 years ago
LineItem.php
63 lines
| 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 |