| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class DiscountCodeApplied implements EventInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @JMS\Type("string") |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $id; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @Jms\Type("ConferenceTools\Tickets\Domain\ValueObject\DiscountCode") |
||
| 19 | * @var DiscountCode |
||
| 20 | */ |
||
| 21 | private $discountCode; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * DiscountCodeApplied constructor. |
||
| 25 | * @param string $id |
||
| 26 | * @param DiscountCode $discountCode |
||
| 27 | */ |
||
| 28 | public function __construct(string $id, DiscountCode $discountCode) |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getId(): string |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return DiscountCode |
||
| 44 | */ |
||
| 45 | public function getDiscountCode(): DiscountCode |
||
| 50 |