| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | trait SavesReceipts |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string[] |
||
| 14 | */ |
||
| 15 | protected $receipts = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param Email $email |
||
| 19 | * @param string $receipt |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | 2 | protected function saveReceipt(Email $email, string $receipt): void |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param Email $email |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 3 | public function receiptFor(Email $email): string |
|
| 42 |