| 1 | <?php |
||
| 9 | class Park implements Command |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var \Parking\Domain\Repository\ParkingRepository |
||
| 14 | */ |
||
| 15 | private $repository; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Park constructor. |
||
| 19 | * @param \Parking\Domain\Repository\ParkingRepository $repository |
||
| 20 | */ |
||
| 21 | public function __construct(\Parking\Domain\Repository\ParkingRepository $repository) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Execute method |
||
| 28 | * |
||
| 29 | * @param $input |
||
| 30 | * @param $output |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function execute($input, $output) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Validate method |
||
| 50 | * |
||
| 51 | * @param $input |
||
| 52 | * @throws \Exception |
||
| 53 | */ |
||
| 54 | protected function validate($input) |
||
| 60 | } |