| @@ 91-98 (lines=8) @@ | ||
| 88 | * |
|
| 89 | * @throws EmptyStackException |
|
| 90 | */ |
|
| 91 | public function getCurrentUri() |
|
| 92 | { |
|
| 93 | if (count($this->stack) === 0) { |
|
| 94 | throw new EmptyStackException(); |
|
| 95 | } |
|
| 96 | ||
| 97 | return end($this->stack)[0]; |
|
| 98 | } |
|
| 99 | ||
| 100 | /** |
|
| 101 | * Returns the current schema. |
|
| @@ 107-114 (lines=8) @@ | ||
| 104 | * |
|
| 105 | * @throws EmptyStackException |
|
| 106 | */ |
|
| 107 | public function getCurrentSchema() |
|
| 108 | { |
|
| 109 | if (count($this->stack) === 0) { |
|
| 110 | throw new EmptyStackException(); |
|
| 111 | } |
|
| 112 | ||
| 113 | return end($this->stack)[1]; |
|
| 114 | } |
|
| 115 | ||
| 116 | /** |
|
| 117 | * Sets an URI pre-fetch hook. The hook function will be called each time |
|