| @@ 55-71 (lines=17) @@ | ||
| 52 | ||
| 53 | } |
|
| 54 | ||
| 55 | public function clear() { |
|
| 56 | ||
| 57 | if ( $this->align_cache === false && $this->pick_mode < 5 ) { |
|
| 58 | return $this->selectProvider()->clear(); |
|
| 59 | } |
|
| 60 | ||
| 61 | $result = []; |
|
| 62 | ||
| 63 | foreach ( $this->stack as $provider ) { |
|
| 64 | ||
| 65 | $result[] = $provider[0]->clear(); |
|
| 66 | ||
| 67 | } |
|
| 68 | ||
| 69 | return !in_array(false, $result); |
|
| 70 | ||
| 71 | } |
|
| 72 | ||
| 73 | public function setNamespace($namespace = null) { |
|
| 74 | ||
| @@ 85-99 (lines=15) @@ | ||
| 82 | ||
| 83 | } |
|
| 84 | ||
| 85 | public function clearNamespace() { |
|
| 86 | ||
| 87 | if ( $this->align_cache === false && $this->pick_mode < 5 ) { |
|
| 88 | return $this->selectProvider()->clearNamespace(); |
|
| 89 | } |
|
| 90 | ||
| 91 | $result = []; |
|
| 92 | ||
| 93 | foreach ( $this->stack->getAll() as $provider ) { |
|
| 94 | $result[] = $provider->clearNamespace(); |
|
| 95 | } |
|
| 96 | ||
| 97 | return !in_array(false, $result); |
|
| 98 | ||
| 99 | } |
|
| 100 | ||
| 101 | public function getStats() { |
|
| 102 | ||