1 | <?php |
||
24 | abstract class Builder implements BuilderInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var Pipeline |
||
28 | */ |
||
29 | protected $when; |
||
30 | |||
31 | /** |
||
32 | * @var Factory |
||
33 | */ |
||
34 | private $factory; |
||
35 | |||
36 | /** |
||
37 | * Builder constructor. |
||
38 | * @param Pipeline $pipeline |
||
39 | * @param Factory $factory |
||
40 | */ |
||
41 | 1 | public function __construct(Pipeline $pipeline, Factory $factory) |
|
46 | |||
47 | /** |
||
48 | * @param Definition|ProvidesTypeIndication $from |
||
49 | * @param ValueInterface $value |
||
50 | * @return array|mixed |
||
51 | * @throws \Railt\Io\Exception\ExternalFileException |
||
52 | */ |
||
53 | protected function valueOf(ProvidesTypeIndication $from, ValueInterface $value) |
||
57 | |||
58 | /** |
||
59 | * @param string $type |
||
60 | * @param TypeDefinition $from |
||
61 | * @return TypeDefinition |
||
62 | * @throws \Railt\Reflection\Exception\TypeNotFoundException |
||
63 | */ |
||
64 | protected function load(string $type, TypeDefinition $from): TypeDefinition |
||
70 | |||
71 | /** |
||
72 | * @param RuleInterface $ast |
||
73 | * @param Definition $parent |
||
74 | * @return Definition |
||
75 | * @throws \Railt\Io\Exception\ExternalFileException |
||
76 | */ |
||
77 | protected function dependent(RuleInterface $ast, Definition $parent): Definition |
||
81 | } |
||
82 |