public function getError($attribute)
    {
        $result = null;

        if ($this->isErrorExists($attribute)) {
            $result = $this->errors[$attribute];
        }

        return $result;
    }
public function getError($attribute)
    {
        $result = null;

        if ($this->isErrorExists($attribute)) {
            $result = $this->errors[$attribute];
        }

        return $result;
    }
public function getError ( $ attribute ) { $ result = null ; if ( $ this -> isErrorExists ( $ attribute ) ) { $ result = $ this -> errors [ $ attribute ] ; } return $ result ; }
Get error by attribute name

@param string $attribute
@return string
Get error by attribute name