| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class TicketPurchaseTotalPriceCalculated implements EventInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @Jms\Type("string") |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $id; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var Price |
||
| 26 | * @Jms\Type("ConferenceTools\Tickets\Domain\ValueObject\Price") |
||
| 27 | */ |
||
| 28 | private $total; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * TicketPurchaseTotalPriceCalculated constructor. |
||
| 32 | * @param string $id |
||
| 33 | * @param Money $total |
||
| 34 | */ |
||
| 35 | public function __construct(string $id, Price $total) |
||
| 36 | { |
||
| 37 | $this->id = $id; |
||
| 38 | $this->total = $total; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function getId(): string |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return Price |
||
| 51 | */ |
||
| 52 | public function getTotal(): Price |
||
| 55 | } |
||
| 56 | } |