| @@ 73-80 (lines=8) @@ | ||
| 70 | * |
|
| 71 | * @throws EmptyStackException |
|
| 72 | */ |
|
| 73 | public function getCurrentUri() |
|
| 74 | { |
|
| 75 | if (count($this->stack) === 0) { |
|
| 76 | throw new EmptyStackException(); |
|
| 77 | } |
|
| 78 | ||
| 79 | return end($this->stack)[0]; |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * Returns the current schema. |
|
| @@ 89-96 (lines=8) @@ | ||
| 86 | * |
|
| 87 | * @throws EmptyStackException |
|
| 88 | */ |
|
| 89 | public function getCurrentSchema() |
|
| 90 | { |
|
| 91 | if (count($this->stack) === 0) { |
|
| 92 | throw new EmptyStackException(); |
|
| 93 | } |
|
| 94 | ||
| 95 | return end($this->stack)[1]; |
|
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * Sets an URI pre-fetch hook. The hook function will be called each time |
|