| Conditions | 3 |
| Paths | 4 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function fetch($key) |
||
| 10 | { |
||
| 11 | // The additional isset() check here improves performance but we also |
||
| 12 | // need array_key_exists() because some cached values === NULL. |
||
| 13 | return (isset($this->cache[$key]) || array_key_exists($key, $this->cache)) |
||
| 14 | ? $this->cache[$key] |
||
| 15 | : false; |
||
| 16 | } |
||
| 17 | |||
| 23 |