1 | <?php |
||
11 | class YamlEntityExtractor extends AbstractFolderExtrator implements ExtractorInterface |
||
12 | { |
||
13 | /** |
||
14 | * List of entities to extract |
||
15 | * [ |
||
16 | * 'entity_code' => 'Model Classname' |
||
17 | * ] |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $processEntities; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $entities = []; |
||
26 | |||
27 | /** |
||
28 | * @var PropertyAccessor |
||
29 | */ |
||
30 | protected $accessor; |
||
31 | |||
32 | /** |
||
33 | * @return array |
||
34 | */ |
||
35 | public function getProcessEntities() |
||
39 | |||
40 | /** |
||
41 | * @param array $processEntities |
||
42 | */ |
||
43 | public function setProcessEntities($processEntities) |
||
47 | |||
48 | /** |
||
49 | * @inheritDoc |
||
50 | */ |
||
51 | public function extract() |
||
65 | |||
66 | protected function check() |
||
74 | |||
75 | /** |
||
76 | * @param string $filename |
||
77 | */ |
||
78 | protected function processFile($filename) |
||
91 | |||
92 | /** |
||
93 | * @param string $entityType |
||
94 | * @param array $data |
||
95 | * @return mixed |
||
96 | * @throws \Exception |
||
97 | */ |
||
98 | protected function processObject($entityType, array $data) |
||
119 | |||
120 | /** |
||
121 | * @param string $identifier |
||
122 | * @return mixed |
||
123 | * @throws \Exception |
||
124 | */ |
||
125 | protected function getEntity($identifier) |
||
136 | } |
||
137 |
This check looks for function calls that miss required arguments.