1 | <?php |
||
10 | abstract class Strategy |
||
11 | { |
||
12 | /** |
||
13 | * @var DocumentationConfig The apidoc config |
||
14 | */ |
||
15 | protected $config; |
||
16 | |||
17 | /** |
||
18 | * @var string The current stage of route processing |
||
19 | */ |
||
20 | protected $stage; |
||
21 | |||
22 | public function __construct(string $stage, DocumentationConfig $config) |
||
27 | |||
28 | /** |
||
29 | * @param Route $route |
||
30 | * @param ReflectionClass $controller |
||
31 | * @param ReflectionMethod $method |
||
32 | * @param array $routeRules Array of rules for the ruleset which this route belongs to. |
||
33 | * @param array $context Results from the previous stages |
||
34 | * |
||
35 | * @throws \Exception |
||
36 | * |
||
37 | * @return array|null |
||
38 | */ |
||
39 | abstract public function __invoke(Route $route, ReflectionClass $controller, ReflectionMethod $method, array $routeRules, array $context = []); |
||
40 | } |
||
41 |