Session/src/Message.php
public function fetch($scope = null)
    {
        $messages = $this->all($scope);
        $this->clear($scope);

        return $messages;
    }
public function fetch($scope = null)
    {
        $messages = $this->all($scope);
        $this->clear($scope);

        return $messages;
    }
public function fetch ( $ scope = null ) { $ messages = $ this -> all ( $ scope ) ; $ this -> clear ( $ scope ) ; return $ messages ; }
Fetch and clear message queue.

@param string $scope
@return array
Fetch and clear message queue .