src/Container.php
public function configMethod($class, $method, $rules) {
		foreach ($rules as $param => $rule) {
			if (ctype_upper($param[0])
				&& (!is_string($rule) && !($rule instanceof Closure))
			) {
				throw new InvalidRuleException("Type $param only allowed string or Closure as an extra rule.");
			}
		}
		$this->rules[$class][$method] = $rules;
		return $this;
	}
public function configMethod($class, $method, $rules) {
		foreach ($rules as $param => $rule) {
			if (ctype_upper($param[0])
				&& (!is_string($rule) && !($rule instanceof Closure))
			) {
				throw new InvalidRuleException("Type $param only allowed string or Closure as an extra rule.");
			}
		}
		$this->rules[$class][$method] = $rules;
		return $this;
	}
public function configMethod ( $ class , $ method , $ rules ) { foreach ( $ rules as $ param => $ rule ) { if ( ctype_upper ( $ param [ 0 ] ) && ( ! is_string ( $ rule ) && ! ( $ rule instanceof Closure ) ) ) { throw new InvalidRuleException ( "Type $param only allowed string or Closure as an extra rule." ) ; } } $ this -> rules [ $ class ] [ $ method ] = $ rules ; return $ this ; }
Configure method parameters of a class.

@param string $class Class name.
@param string $method Method name.
@param array $rules
@return self
Configure method parameters of a class .