public function History::current in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/browser-kit/History.php \Symfony\Component\BrowserKit\History::current()
Returns the current element in the history.
Return value
Throws
\LogicException if the stack is empty
File
- vendor/
symfony/ browser-kit/ History.php, line 94
Class
- History
- History.
Namespace
Symfony\Component\BrowserKitCode
public function current() {
if (-1 == $this->position) {
throw new \LogicException('The page history is empty.');
}
return clone $this->stack[$this->position];
}