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