Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public function get($collection, $path) |
||
10 | { |
||
11 | $dotter = $this->resolve($collection); |
||
12 | |||
13 | if (null === $dotter) { |
||
14 | $type = gettype($collection); |
||
15 | |||
16 | throw new InvalidArgumentException( |
||
17 | "Freckle doesn't know how to process the " . |
||
18 | "collection of type [{$type}]" |
||
19 | ); |
||
20 | } |
||
21 | |||
22 | return $dotter->get($collection, $path); |
||
23 | } |
||
24 | |||
34 |