PHP Class Medusa\Stack\PersistentStack

Inheritance: implements IteratorAggregate, implements Medusa\Stack\Stack
显示文件 Open project: keyvanakbary/medusa Class Usage Examples

Public Methods

Method Description
__construct ( $head, Medusa\Stack\Stack $tail, $count )
count ( )
createEmpty ( )
getIterator ( )
isEmpty ( )
peek ( )
pop ( )
push ( $value )

Method Details

__construct() public method

public __construct ( $head, Medusa\Stack\Stack $tail, $count )
$tail Medusa\Stack\Stack

count() public method

public count ( )

createEmpty() public static method

public static createEmpty ( )

getIterator() public method

public getIterator ( )

isEmpty() public method

public isEmpty ( )

peek() public method

public peek ( )

pop() public method

public pop ( )

push() public method

public push ( $value )