class History

History.

Methods

__construct()

Constructor.

clear()

Clears the history.

add(Request $request)

Adds a Request to the history.

Boolean
isEmpty()

Returns true if the history is empty.

back()

Goes back in the history.

forward()

Goes forward in the history.

current()

Returns the current element in the history.

Details

at line line 27
__construct()

Constructor.

at line line 35
clear()

Clears the history.

at line line 46
add(Request $request)

Adds a Request to the history.

Parameters

Request $request A Request instance

at line line 58
Boolean isEmpty()

Returns true if the history is empty.

Return Value

Boolean true if the history is empty, false otherwise

at line line 70
Request back()

Goes back in the history.

Return Value

Request A Request instance

Exceptions

LogicException if the stack is already on the first page

at line line 86
Request forward()

Goes forward in the history.

Return Value

Request A Request instance

Exceptions

LogicException if the stack is already on the last page

at line line 102
Request current()

Returns the current element in the history.

Return Value

Request A Request instance

Exceptions

LogicException if the stack is empty