Ouzo\Validatable::getErrorObjects PHP Method

getErrorObjects() public method

public getErrorObjects ( )
    public function getErrorObjects()
    {
        return $this->_errors;
    }

Usage Example

Exemplo n.º 1
0
 public function validateAssociated(Validatable $validatable)
 {
     $validatable->validate();
     $this->_errors = array_merge($this->getErrorObjects(), $validatable->getErrorObjects());
     $this->_errorFields = array_merge($this->_errorFields, $validatable->getErrorFields());
 }