public function extractCustomMessage( $theRule )
    {

        if ($this->findChar('--', $theRule)) {
            $theRule = explode('--', $theRule);
            return end($theRule);
        }

        return null;

    }
public function extractCustomMessage( $theRule )
    {

        if ($this->findChar('--', $theRule)) {
            $theRule = explode('--', $theRule);
            return end($theRule);
        }

        return null;

    }
public function extractCustomMessage ( $ theRule ) { if ( $ this -> findChar ( '--' , $ theRule ) ) { $ theRule = explode ( '--' , $ theRule ) ; return end ( $ theRule ) ; } return null ; }
Returns error message passed with a rule

@param $theRule
@return null|mixed
Returns error message passed with a rule