src/Session.php
public function push(string $name, $value) : self
    {
        $data = $this->get($name) ?: [];
        $data[] = $value;

        return $this->set($name, $data);
    }
public function push(string $name, $value) : self
    {
        $data = $this->get($name) ?: [];
        $data[] = $value;

        return $this->set($name, $data);
    }
public function push ( string $ name , $ value ) : self { $ data = $ this -> get ( $ name ) ? : [ ] ; $ data [ ] = $ value ; return $ this -> set ( $ name , $ data ) ; }
@param string $name
@param $value

@return $this|self
@param string $name @param $value