src/FlashMessage.php
public function getMessages($type)
    {
        return $this->hasMessages($type)
            ? $_SESSION[$this->alias][$type]
            : null;
    }
public function getMessages($type)
    {
        return $this->hasMessages($type)
            ? $_SESSION[$this->alias][$type]
            : null;
    }
public function getMessages ( $ type ) { return $ this -> hasMessages ( $ type ) ? $ _SESSION [ $ this -> alias ] [ $ type ] : null ; }
Get messages from the given type

@param  string $type
@return mixed
Get messages from the given type