1 | <?php |
||
10 | trait ConfigureTrait |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * Properties |
||
15 | * |
||
16 | */ |
||
17 | private $config = []; // Store all config as an array |
||
18 | |||
19 | |||
20 | |||
21 | /** |
||
22 | * Read configuration from file or array, if a file, first check in |
||
23 | * ANAX_APP_PATH/config and then in ANAX_INSTALL_PATH/config. |
||
24 | * |
||
25 | * @param array/string $what is an array with key/value config options |
||
|
|||
26 | * or a file to be included which returns such |
||
27 | * an array. |
||
28 | * |
||
29 | * @throws Exception when argument if not a filer nor an array. |
||
30 | * |
||
31 | * @return $this for chaining. |
||
32 | */ |
||
33 | 1 | public function configure($what) |
|
51 | } |
||
52 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.