commandSave = $commandSave; $this->commandGet = $commandGet; $this->commandGetList = $commandGetList; } /** * @inheritdoc */ public function save(SourceInterface $source): void { $this->commandSave->execute($source); } /** * @inheritdoc */ public function get(string $sourceCode): SourceInterface { return $this->commandGet->execute($sourceCode); } /** * @inheritdoc */ public function getList(SearchCriteriaInterface $searchCriteria = null): SourceSearchResultsInterface { return $this->commandGetList->execute($searchCriteria); } }