protected function clientRule($attribute, $rule, $parameters)
    {
        $jsRule = self::JAVASCRIPT_RULE;
        $method = "rule{$rule}";

        if (method_exists($this, $method)) {
            list($attribute, $parameters) = $this->$method($attribute, $parameters);
        }

        return [$jsRule, $attribute, $parameters];
    }
protected function clientRule($attribute, $rule, $parameters)
    {
        $jsRule = self::JAVASCRIPT_RULE;
        $method = "rule{$rule}";

        if (method_exists($this, $method)) {
            list($attribute, $parameters) = $this->$method($attribute, $parameters);
        }

        return [$jsRule, $attribute, $parameters];
    }
Returns Javascript parameters for remote validated rules.

@param string $attribute
@param string $rule
@param $parameters
@return array