DonationReceipt.php
5 years ago
LineItem.php
6 years ago
Receipt.php
6 years ago
Section.php
5 years ago
UpdateReceipt.php
6 years ago
LineItem.php
61 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 | * @since 2.7.0 |
| 11 | * @package Give\Receipt |
| 12 | */ |
| 13 | class LineItem { |
| 14 | /** |
| 15 | * ID. |
| 16 | * |
| 17 | * @since 2.7.0 |
| 18 | * @var int $donationId |
| 19 | */ |
| 20 | public $id; |
| 21 | |
| 22 | /** |
| 23 | * Label. |
| 24 | * |
| 25 | * @since 2.7.0 |
| 26 | * @var int $donationId |
| 27 | */ |
| 28 | public $label; |
| 29 | |
| 30 | /** |
| 31 | * Value. |
| 32 | * |
| 33 | * @since 2.7.0 |
| 34 | * @var int $donationId |
| 35 | */ |
| 36 | public $value; |
| 37 | |
| 38 | /** |
| 39 | * Icon. |
| 40 | * |
| 41 | * @since 2.7.0 |
| 42 | * @var int $donationId |
| 43 | */ |
| 44 | public $icon; |
| 45 | |
| 46 | /** |
| 47 | * LineItem constructor. |
| 48 | * |
| 49 | * @param string $id |
| 50 | * @param string $label |
| 51 | * @param string $value |
| 52 | * @param string $icon |
| 53 | */ |
| 54 | public function __construct( $id, $label, $value, $icon = '' ) { |
| 55 | $this->id = $id; |
| 56 | $this->label = $label; |
| 57 | $this->value = $value; |
| 58 | $this->icon = $icon; |
| 59 | } |
| 60 | } |
| 61 |