original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Returns all validation errors.
  
  @return array
docstring_tokens: Returns all validation errors .