17 private $findStrategy;
18 private $saveStrategy;
19 private $deleteStrategy;
29 $this->findStrategy = $findStrategy;
30 $this->saveStrategy = $saveStrategy;
31 $this->deleteStrategy = $deleteStrategy;
37 public function findById(
int $id,
string $languageId,
int $searchScope)
39 return $this->findStrategy->findById($id, $languageId, $searchScope);
49 public function findByExternalId(
string $externalId,
string $sourceCode,
string $languageId,
int $searchScope)
51 return $this->findStrategy->findByExternalId($externalId, $sourceCode, $languageId, $searchScope);
60 public function findByText(
string $text,
string $languageId,
int $searchScope)
62 return $this->findStrategy->findByText($text, $languageId, $searchScope);
72 return $this->findStrategy->autocomplete($params, $searchScope);
81 return $this->saveStrategy->save($location);
90 return $this->deleteStrategy->delete($location);
101 return $this->findStrategy->findParents($location, $languageId, $searchScope);
110 return $this->saveStrategy->saveParents($parents);
findParents(Entity\Location $location, string $languageId, int $searchScope)
__construct(Find $findStrategy, Save $saveStrategy, Delete $deleteStrategy)
findById(int $id, string $languageId, int $searchScope)
save(Entity\Location $location)
findByExternalId(string $externalId, string $sourceCode, string $languageId, int $searchScope)
saveParents(Entity\Location\Parents $parents)
autocomplete(array $params, int $searchScope)
findByText(string $text, string $languageId, int $searchScope)