1 | <?php |
||
21 | final class Config |
||
22 | { |
||
23 | const DEFAULT_CONFIG = 'ConfigDefault'; |
||
24 | const DEFAULT_NAMESPACE = 'Asm'; |
||
25 | |||
26 | /** |
||
27 | * Get object of specific class. |
||
28 | * |
||
29 | * @param array $param config file name |
||
30 | * @param string $class name of class without |
||
31 | * @throws \ErrorException |
||
32 | * @throws \InvalidArgumentException |
||
33 | * @return ConfigInterface |
||
34 | */ |
||
35 | public static function factory(array $param, string $class = self::DEFAULT_CONFIG) : ConfigInterface |
||
56 | |||
57 | /** |
||
58 | * Fordbid instantiation. |
||
59 | * |
||
60 | * @codeCoverageIgnore |
||
61 | */ |
||
62 | private function __construct() |
||
65 | |||
66 | /** |
||
67 | * Forbid cloning. |
||
68 | * |
||
69 | * @codeCoverageIgnore |
||
70 | */ |
||
71 | private function __clone() |
||
74 | } |
||
75 |