Основные методы
Основные методы
Основные методы
Основные методы
public function __construct(Warehouse $warehouse, DTOBuilderFactoryInterface $dtoBuilderFactory) { $this->entity = $warehouse; $this->dtoBuilderFactory = $dtoBuilderFactory; $this->entityDTO = new WarehouseDTO(); $this->setId(); $this->setTime(); $this->entityDTO->name = $this->entity->getName(); $this->entityDTO->address = $this->dtoBuilderFactory->getAddressDTOBuilder($this->entity->getAddress())->build(); }