public function getOnlyMessages()
    {
        $messages = [];
        foreach ($this->errors as $key => $row) {
            foreach ($row as $keyRow => $valueRow) {
                $messages[] = $valueRow;
            }
        }

        return $messages;
    }
public function getOnlyMessages()
    {
        $messages = [];
        foreach ($this->errors as $key => $row) {
            foreach ($row as $keyRow => $valueRow) {
                $messages[] = $valueRow;
            }
        }

        return $messages;
    }
public function getOnlyMessages ( ) { $ messages = [ ] ; foreach ( $ this -> errors as $ key => $ row ) { foreach ( $ row as $ keyRow => $ valueRow ) { $ messages [ ] = $ valueRow ; } } return $ messages ; }
Get errors, no array key
@return array
Get errors no array key