| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Psr11 |
||
| 8 | { |
||
| 9 | private static $definition = null; |
||
| 10 | private static $container = null; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @return \ByJG\Config\Container |
||
| 14 | */ |
||
| 15 | public static function container() |
||
| 16 | { |
||
| 17 | if (is_null(self::$container)) { |
||
| 18 | self::$container = self::environment()->build(); |
||
| 19 | } |
||
| 20 | |||
| 21 | return self::$container; |
||
| 22 | } |
||
| 23 | |||
| 24 | |||
| 25 | /** |
||
| 26 | * @return Definition |
||
| 27 | */ |
||
| 28 | public static function environment() |
||
| 42 | } |
||
| 43 | } |
||
| 44 |