1 | <?php |
||
14 | class Assembler implements AssemblageInterface |
||
15 | { |
||
16 | /** @var Executable */ |
||
17 | private $executable; |
||
18 | |||
19 | /** @var Validator */ |
||
20 | private $validator; |
||
21 | |||
22 | /** |
||
23 | * @param mixed $data |
||
24 | * @return mixed |
||
25 | * @throws ExecutableInterface |
||
26 | */ |
||
27 | public function assemble($data) |
||
39 | |||
40 | /** |
||
41 | * @param Executable $executable |
||
42 | * @return $this |
||
43 | */ |
||
44 | public function setExecutable(Executable $executable) |
||
50 | |||
51 | /** |
||
52 | * @param Validator $validator |
||
53 | * @return $this |
||
54 | */ |
||
55 | public function setValidator(Validator $validator) |
||
61 | |||
62 | /** |
||
63 | * @param array $data |
||
64 | * @return array |
||
65 | */ |
||
66 | private function build($data) |
||
84 | |||
85 | /** |
||
86 | * @param string|array $arrayOrCallable |
||
87 | * @return bool |
||
88 | */ |
||
89 | private function isCallable($arrayOrCallable) |
||
111 | |||
112 | /** |
||
113 | * @return Executable |
||
114 | */ |
||
115 | private function getNewExecutable() |
||
119 | } |
||
120 |