src/Session.php
public function getFlush(string $name)
    {
        if (!$this->haveCookie()) {
            return null;
        }

        $return = $this->get($name);
        $this->remove($name);

        return $return;
    }
public function getFlush(string $name)
    {
        if (!$this->haveCookie()) {
            return null;
        }

        $return = $this->get($name);
        $this->remove($name);

        return $return;
    }
@param string $name

@return mixed