Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class ConfigRepository extends AbstractConfigRepository |
||
11 | { |
||
12 | /** |
||
13 | * Helper method to construct a ConfigRepository instance with a default ConfigFactory. |
||
14 | * |
||
15 | * @return \FigTree\Config\Contracts\ConfigRepositoryInterface |
||
16 | */ |
||
17 | public static function create(): ConfigRepositoryInterface |
||
18 | { |
||
19 | $factory = new ConfigFactory(); |
||
20 | |||
21 | $instance = new static($factory); |
||
22 | |||
23 | return $instance; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Construct an instance of ConfigRepository. |
||
28 | * |
||
29 | * @param \FigTree\Config\Contracts\ConfigFactoryInterface $factory |
||
30 | */ |
||
31 | public function __construct(ConfigFactoryInterface $factory) |
||
34 | } |
||
35 | } |
||
36 |