| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class AssignToDelegate implements CommandInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var Delegate |
||
| 18 | */ |
||
| 19 | private $delegate; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $ticketId; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $purchaseId; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * AssignToDelegate constructor. |
||
| 33 | * @param $delegate |
||
| 34 | * @param $ticketId |
||
| 35 | * @param $purchaseId |
||
| 36 | */ |
||
| 37 | public function __construct(Delegate $delegate, string $ticketId, string $purchaseId) |
||
| 38 | { |
||
| 39 | $this->delegate = $delegate; |
||
| 40 | $this->ticketId = $ticketId; |
||
| 41 | $this->purchaseId = $purchaseId; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return Delegate |
||
| 46 | */ |
||
| 47 | public function getDelegate(): Delegate |
||
| 48 | { |
||
| 49 | return $this->delegate; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getTicketId(): string |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | public function getPurchaseId(): string |
||
| 66 | } |
||
| 67 | } |