1 | <?php // @codingStandardsIgnoreFile |
||
31 | abstract class AbstractEntityValidatorFactory implements |
||
32 | FactoryInterface, |
||
|
|||
33 | \Zend\ServiceManager\MutableCreationOptionsInterface |
||
34 | { |
||
35 | protected $options = []; |
||
36 | |||
37 | /** |
||
38 | * Uses the EntityServiceManager to fetch an EntityService for the entity set in the options array. |
||
39 | * |
||
40 | * @param ContainerInterface $container |
||
41 | * @param string $requestedName |
||
42 | * @param array|null $options The options passed to the service manager. |
||
43 | * @return ValidatorInterface |
||
44 | */ |
||
45 | 9 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
59 | |||
60 | 3 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
74 | |||
75 | 3 | public function setCreationOptions(array $options) |
|
79 | |||
80 | /** |
||
81 | * Fetches a EntityServiceInterface instance from the EntityServiceManager |
||
82 | * |
||
83 | * @param ContainerInterface $container |
||
84 | * @param string $entityName |
||
85 | * @return EntityServiceInterface |
||
86 | */ |
||
87 | 6 | protected function createEntityService(ContainerInterface $container, $entityName) |
|
93 | |||
94 | abstract protected function createValidator(EntityServiceInterface $entityService, array $options = null); |
||
95 | } |
||
96 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.