public function expectsParameter($flag)
    {
        $rule = $this->getRule($flag);
        return $rule && $rule['required'] !== self::PARAM_NOTREQUIRED;
    }
public function expectsParameter($flag)
    {
        $rule = $this->getRule($flag);
        return $rule && $rule['required'] !== self::PARAM_NOTREQUIRED;
    }
public function expectsParameter ( $ flag ) { $ rule = $ this -> getRule ( $ flag ) ; return $ rule && $ rule [ 'required' ] !== self :: PARAM_NOTREQUIRED ; }
Returns true if the given flag expects a parameter.

@return  bool
Returns true if the given flag expects a parameter .