1 | <?php |
||
22 | abstract class Builder implements BuilderInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var Readable |
||
26 | */ |
||
27 | protected $file; |
||
28 | |||
29 | /** |
||
30 | * @var Definition |
||
31 | */ |
||
32 | protected $definition; |
||
33 | |||
34 | /** |
||
35 | * @var Document |
||
36 | */ |
||
37 | protected $document; |
||
38 | |||
39 | /** |
||
40 | * @var RuleInterface |
||
41 | */ |
||
42 | protected $ast; |
||
43 | |||
44 | /** |
||
45 | * @var Process |
||
46 | */ |
||
47 | private $process; |
||
48 | |||
49 | /** |
||
50 | * Builder constructor. |
||
51 | * @param Context $ctx |
||
52 | * @param RuleInterface $ast |
||
53 | * @param Process $process |
||
54 | */ |
||
55 | public function __construct(Context $ctx, RuleInterface $ast, Process $process) |
||
63 | |||
64 | /** |
||
65 | * @param \Closure $then |
||
66 | */ |
||
67 | public function async(\Closure $then): void |
||
71 | |||
72 | /** |
||
73 | * @param Definition|AbstractDefinition $definition |
||
74 | * @return Definition |
||
75 | */ |
||
76 | protected function bind(Definition $definition): Definition |
||
82 | |||
83 | /** |
||
84 | * @return string |
||
85 | * @throws \Railt\SDL\Exception\SyntaxException |
||
86 | */ |
||
87 | protected function getName(): string |
||
91 | |||
92 | /** |
||
93 | * @return string|null |
||
94 | */ |
||
95 | protected function findName(): ?string |
||
99 | } |
||
100 |