| 1 | <?php |
||
| 17 | class Factory |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var array|InterceptorInterface[] |
||
| 21 | */ |
||
| 22 | private $interceptors; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Factory constructor. |
||
| 26 | * @param array|InterceptorInterface $interceptors |
||
| 27 | */ |
||
| 28 | public function __construct(array $interceptors = []) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param array|InterceptorInterface $interceptors |
||
| 35 | * @return Factory |
||
| 36 | */ |
||
| 37 | public static function create(array $interceptors = []): Factory |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param InterceptorInterface ...$interceptors |
||
| 44 | * @return Factory |
||
| 45 | */ |
||
| 46 | public function add(InterceptorInterface ...$interceptors): Factory |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param ContextInterface $ctx |
||
| 57 | * @param mixed $value |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | public function resolve(ContextInterface $ctx, $value): array |
||
| 70 | } |
||
| 71 |