public function getMessages()
    {
        $message = [];
        foreach ($this->errorList as $item) {
            $message[] = $item->getMessage();
        }

        return $message;
    }
public function getMessages()
    {
        $message = [];
        foreach ($this->errorList as $item) {
            $message[] = $item->getMessage();
        }

        return $message;
    }
public function getMessages ( ) { $ message = [ ] ; foreach ( $ this -> errorList as $ item ) { $ message [ ] = $ item -> getMessage ( ) ; } return $ message ; }
Returns all the messages.

@return array|string
@author: Eddilbert Macharia (http://eddmash.com)<edd.cowan@gmail.com>
Returns all the messages .