6 declare(strict_types=1);
37 private $commandDeleteById;
42 private $commandGetList;
56 $this->commandSave = $commandSave;
57 $this->commandGet = $commandGet;
58 $this->commandDeleteById = $commandDeleteById;
59 $this->commandGetList = $commandGetList;
67 return $this->commandSave->execute(
$stock);
75 return $this->commandGet->execute($stockId);
83 $this->commandDeleteById->execute($stockId);
__construct(SaveInterface $commandSave, GetInterface $commandGet, DeleteByIdInterface $commandDeleteById, GetListInterface $commandGetList)
save(StockInterface $stock)
getList(SearchCriteriaInterface $searchCriteria=null)