| 1 | <?php |
||
| 10 | class AddCarCommand implements CommandInterface |
||
| 11 | { |
||
| 12 | private $preparedCar; |
||
| 13 | private $carRepository; |
||
| 14 | |||
| 15 | public function __construct(CarRepositoryInterface $carRepository, CarDTO $preparedCar) |
||
| 16 | { |
||
| 17 | $this->preparedCar = $preparedCar; |
||
| 18 | $this->carRepository = $carRepository; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function execute() |
||
| 37 | } |
||
| 38 |