Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | class NestedAccessorFactory implements NestedAccessorFactoryInterface |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritDoc} |
||
15 | */ |
||
16 | public static function create(&$source, string $pathDelimiter = '.'): NestedAccessorInterface |
||
17 | { |
||
18 | return new NestedAccessor($source, $pathDelimiter); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * {@inheritDoc} |
||
23 | */ |
||
24 | public static function fromArray(array &$source, string $pathDelimiter = '.'): NestedAccessorInterface |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritDoc} |
||
31 | */ |
||
32 | public static function fromObject(object &$source, string $pathDelimiter = '.'): NestedAccessorInterface |
||
37 |