Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function get($index, $defaultValue = null, $filtered = true) |
||
46 | { |
||
47 | if ($this->data->offsetExists($index)) { |
||
48 | |||
49 | if ($filtered === true) { |
||
50 | // pretty high-level filtering here... |
||
51 | return self::filter($this->data->offsetGet($index)); |
||
52 | } |
||
53 | |||
54 | return $this->data->offsetGet($index); |
||
55 | } |
||
56 | |||
57 | return $defaultValue; |
||
58 | } |
||
59 | |||
80 |