public function getInvalidRules($field = null)
    {
        return $field ?
            isset($this->invalidRules[$field]) ? $this->invalidRules[$field] : array()
            : $this->invalidRules;
    }
public function getInvalidRules($field = null)
    {
        return $field ?
            isset($this->invalidRules[$field]) ? $this->invalidRules[$field] : array()
            : $this->invalidRules;
    }
public function getInvalidRules ( $ field = null ) { return $ field ? isset ( $ this -> invalidRules [ $ field ] ) ? $ this -> invalidRules [ $ field ] : array ( ) : $ this -> invalidRules ; }
Get invalid rules by field

@param string $field
@return array
Get invalid rules by field