public function getAllMessage()
    {
        $messages = [];
        foreach (array_keys($this->errors) as $key) {
            $messages[$key] = $this->getMessage($key);
        }
        return $messages;
    }
public function getAllMessage()
    {
        $messages = [];
        foreach (array_keys($this->errors) as $key) {
            $messages[$key] = $this->getMessage($key);
        }
        return $messages;
    }
public function getAllMessage ( ) { $ messages = [ ] ; foreach ( array_keys ( $ this -> errors ) as $ key ) { $ messages [ $ key ] = $ this -> getMessage ( $ key ) ; } return $ messages ; }
get all each key

@return array
get all each key