6 declare(strict_types=1);
18 private $appliers = [];
23 private $objectManager;
32 ArgumentApplier\Filter::ARGUMENT_NAME => ArgumentApplier\Filter::class,
33 ArgumentApplier\Sort::ARGUMENT_NAME => ArgumentApplier\Sort::class
37 $this->appliers = $appliers;
49 if (isset($this->appliers[$argumentName])) {
50 return $this->objectManager->get($this->appliers[$argumentName]);
52 throw new \LogicException(sprintf(
'Applier %s not found', $argumentName));
64 if (isset($this->appliers[$argumentName])) {
__construct(ObjectManagerInterface $objectManager, array $appliers=[ArgumentApplier\Filter::ARGUMENT_NAME=> ArgumentApplier\Filter::class, ArgumentApplier\Sort::ARGUMENT_NAME=> ArgumentApplier\Sort::class])
hasApplier(string $argumentName)
getApplier(string $argumentName)