Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public static function create(AST\Bag\Context $element): self |
||
12 | { |
||
13 | $dimensionNames = array_map(function ($dimension) { |
||
14 | return $dimension[1]; |
||
15 | }, $element->getDimensions()); |
||
16 | $dimensionNames = array_merge([$element->getId()], $dimensionNames); |
||
17 | |||
18 | return new static(sprintf('Invalid access "%s".', implode('.', $dimensionNames))); |
||
19 | } |
||
20 | } |
||
21 |