1 | <?php |
||
21 | abstract class DefinitionProcessor implements ProcessorInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var Document|\Railt\Reflection\Document |
||
25 | */ |
||
26 | protected $document; |
||
27 | |||
28 | /** |
||
29 | * @var Pipeline |
||
30 | */ |
||
31 | protected $pipeline; |
||
32 | |||
33 | /** |
||
34 | * @var Factory |
||
35 | */ |
||
36 | private $factory; |
||
37 | |||
38 | /** |
||
39 | * DefinitionProcessor constructor. |
||
40 | * @param Document $document |
||
41 | * @param Pipeline $pipeline |
||
42 | * @param Factory $factory |
||
43 | */ |
||
44 | 1 | public function __construct(Document $document, Pipeline $pipeline, Factory $factory) |
|
50 | |||
51 | /** |
||
52 | * @param RuleInterface $rule |
||
53 | * @return Definition |
||
54 | * @throws \Railt\Io\Exception\ExternalFileException |
||
55 | */ |
||
56 | protected function build(RuleInterface $rule): Definition |
||
60 | |||
61 | /** |
||
62 | * @param \Closure $then |
||
63 | * @return DefinitionProcessor |
||
64 | */ |
||
65 | protected function deferred(\Closure $then): DefinitionProcessor |
||
71 | |||
72 | /** |
||
73 | * @param \Closure $then |
||
74 | * @return DefinitionProcessor |
||
75 | */ |
||
76 | protected function then(\Closure $then): DefinitionProcessor |
||
82 | } |
||
83 |