public function getErrors()
    {
        $diff = array_diff_key($this->_properties, $this->_errors);

        return $this->_errors + (new Collection($diff))
            ->filter(function ($value) {
                return is_array($value) || $value instanceof EntityInterface;
            })
            ->map(function ($value) {
                return $this->_readError($value);
            })
            ->filter()
            ->toArray();
    }
public function getErrors()
    {
        $diff = array_diff_key($this->_properties, $this->_errors);

        return $this->_errors + (new Collection($diff))
            ->filter(function ($value) {
                return is_array($value) || $value instanceof EntityInterface;
            })
            ->map(function ($value) {
                return $this->_readError($value);
            })
            ->filter()
            ->toArray();
    }
public function getErrors ( ) { $ diff = array_diff_key ( $ this -> _properties , $ this -> _errors ) ; return $ this -> _errors + ( new Collection ( $ diff ) ) -> filter ( function ( $ value ) { return is_array ( $ value ) || $ value instanceof EntityInterface ; } ) -> map ( function ( $ value ) { return $ this -> _readError ( $ value ) ; } ) -> filter ( ) -> toArray ( ) ; }
Returns all validation errors.

@return array
Returns all validation errors .