| 1 | <?php |
||
| 20 | class DefinitionInterceptor implements InterceptorInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var Storage |
||
| 24 | */ |
||
| 25 | private $definitions; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * DefinitionInterceptor constructor. |
||
| 29 | * @param Storage $definitions |
||
| 30 | */ |
||
| 31 | public function __construct(Storage $definitions) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param mixed $value |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | public function match($value): bool |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param ContextInterface $context |
||
| 47 | * @param mixed $value |
||
| 48 | * @return array |
||
| 49 | */ |
||
| 50 | public function resolve(ContextInterface $context, $value): array |
||
| 58 | } |
||
| 59 |