public function rules($type)
	{
		$type = strtolower(trim($type));

		if (!isset($this->rules[$type]))
		{
			throw new InvalidArgumentException(sprintf('Rule type of %s not supported', $type));
		}

		return $this->rules[$type];
	}
public function rules($type)
	{
		$type = strtolower(trim($type));

		if (!isset($this->rules[$type]))
		{
			throw new InvalidArgumentException(sprintf('Rule type of %s not supported', $type));
		}

		return $this->rules[$type];
	}
public function rules ( $ type ) { $ type = strtolower ( trim ( $ type ) ) ; if ( ! isset ( $ this -> rules [ $ type ] ) ) { throw new InvalidArgumentException ( sprintf ( 'Rule type of %s not supported' , $ type ) ) ; } return $ this -> rules [ $ type ] ; }
Get a set of rules

@param   string  $type
@return  object
Get a set of rules