src/SessionCacheBag.php
public function get($name, $default = null)
    {
        if (!array_key_exists($name, $this->data)) {
            return $default;
        }

        if (0 === $this->data[$name]['lifeTime']) {
            return $this->data[$name]['data'];
        }

        return $this->data[$name]['lifeTime'] < time() ? $default : $this->data[$name]['data'];
    }
public function get($name, $default = null)
    {
        if (!array_key_exists($name, $this->data)) {
            return $default;
        }

        if (0 === $this->data[$name]['lifeTime']) {
            return $this->data[$name]['data'];
        }

        return $this->data[$name]['lifeTime'] < time() ? $default : $this->data[$name]['data'];
    }
public function get ( $ name , $ default = null ) { if ( ! array_key_exists ( $ name , $ this -> data ) ) { return $ default ; } if ( 0 === $ this -> data [ $ name ] [ 'lifeTime' ] ) { return $ this -> data [ $ name ] [ 'data' ] ; } return $ this -> data [ $ name ] [ 'lifeTime' ] < time ( ) ? $ default : $ this -> data [ $ name ] [ 'data' ] ; }
{@inheritdoc}
{