Session

A shell session.

package

Default

Methods

__construct

__construct() 

Create a new empty session.

create() : \io\vertx\jphp\ext\shell\session\Session
static

Response

\io\vertx\jphp\ext\shell\session\Session

the created session

Get some data from the session

get( $arg0) : mixed

Arguments

$arg0

string

Response

mixed

the data

Put some data in a session

put( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

mixed

Response

$this

a reference to this, so the API can be used fluently

Remove some data from the session

remove( $arg0) : mixed

Arguments

$arg0

string

Response

mixed

the data that was there or null if none there