public function getRules()
    {
        // Retrieve group name
        $group = $this->group;

        // Make sure a group has been set
        if (empty($group)) {
            throw new GroupRulesNotFoundException('No group has been provided');
        }

        // Make sure group exists in rules array
        if (! array_key_exists($group, $this->rules)) {
            throw new GroupRulesNotFoundException(sprintf('Group [%s] not found in rules array', $group));
        }

        return $this->prepareRules($this->rules[$group]);
    }
public function getRules()
    {
        // Retrieve group name
        $group = $this->group;

        // Make sure a group has been set
        if (empty($group)) {
            throw new GroupRulesNotFoundException('No group has been provided');
        }

        // Make sure group exists in rules array
        if (! array_key_exists($group, $this->rules)) {
            throw new GroupRulesNotFoundException(sprintf('Group [%s] not found in rules array', $group));
        }

        return $this->prepareRules($this->rules[$group]);
    }
public function getRules ( ) { // Retrieve group name $ group = $ this -> group ; // Make sure a group has been set if ( empty ( $ group ) ) { throw new GroupRulesNotFoundException ( 'No group has been provided' ) ; } // Make sure group exists in rules array if ( ! array_key_exists ( $ group , $ this -> rules ) ) { throw new GroupRulesNotFoundException ( sprintf ( 'Group [%s] not found in rules array' , $ group ) ) ; } return $ this -> prepareRules ( $ this -> rules [ $ group ] ) ; }
Retrieve validation rules.

@author Morten Rugaard <moru@nodes.dk>

@return array
@throws \Nodes\Validation\Exceptions\GroupRulesNotFoundException
Retrieve validation rules .