Pantheon\Terminus\Session\Session::get PHP Method

get() public method

Returns given data property or default if DNE.
public get ( string $key ) : mixed
$key string Name of property to return
return mixed
    public function get($key)
    {
        if (isset($this->data->{$key})) {
            return $this->data->{$key};
        }
        return null;
    }