1 | <?php |
||
8 | trait ParserTrait |
||
9 | { |
||
10 | protected $schemaConfig; |
||
11 | |||
12 | /** |
||
13 | * Set config string |
||
14 | * @param string $configString |
||
15 | * @return mixed |
||
16 | * @throws InvalidArgumentException |
||
17 | */ |
||
18 | public function setConfig(string $configString) |
||
23 | |||
24 | /** |
||
25 | * Set the file contains config string |
||
26 | * @param string $configFile |
||
27 | * @return mixed |
||
28 | * @throws FileNotFoundException |
||
29 | * @throws InvalidArgumentException |
||
30 | */ |
||
31 | public function getConfigFromFile(string $configFile) |
||
43 | |||
44 | /** |
||
45 | * Checks if schemaConfig is empty |
||
46 | * @param string $configString |
||
47 | * @throws InvalidArgumentException |
||
48 | */ |
||
49 | protected function isConfigEmpty(string $configString) |
||
55 | } |
||
56 |