| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class PurchaseRejected extends Event |
||
| 12 | { |
||
| 13 | private $identity; |
||
| 14 | private $product; |
||
| 15 | |||
| 16 | public function __construct(Identity $identity, Product $product) |
||
| 17 | { |
||
| 18 | $this->identity = $identity; |
||
| 19 | $this->product = $product; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function identity(): Identity |
||
| 23 | { |
||
| 24 | return $this->identity; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function product(): Product |
||
| 30 | } |
||
| 31 | } |
||
| 32 |