| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class PurchaseReceipt |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | const OUTPUT_FORMAT = "version=2\ncdr=%s\n"; |
||
| 9 | |||
| 10 | /** @var bool */ |
||
| 11 | public $status; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * PaymentReceipt constructor. |
||
| 15 | * @param bool $status |
||
| 16 | */ |
||
| 17 | public function __construct(bool $status) |
||
| 18 | { |
||
| 19 | $this->status = $status; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | public function __toString(): string |
||
| 28 | } |
||
| 29 | } |
||
| 30 |