History
in package
History.
Tags
Table of Contents
Properties
Methods
- add() : mixed
- Adds a Request to the history.
- back() : Request
- Goes back in the history.
- clear() : mixed
- Clears the history.
- current() : Request
- Returns the current element in the history.
- forward() : Request
- Goes forward in the history.
- isEmpty() : bool
- Returns true if the history is empty.
Properties
$position
protected
mixed
$position
= -1
$stack
protected
mixed
$stack
= []
Methods
add()
Adds a Request to the history.
public
add(Request $request) : mixed
Parameters
- $request : Request
back()
Goes back in the history.
public
back() : Request
Tags
Return values
Request —A Request instance
clear()
Clears the history.
public
clear() : mixed
current()
Returns the current element in the history.
public
current() : Request
Tags
Return values
Request —A Request instance
forward()
Goes forward in the history.
public
forward() : Request
Tags
Return values
Request —A Request instance
isEmpty()
Returns true if the history is empty.
public
isEmpty() : bool
Return values
bool —true if the history is empty, false otherwise