src/Vue.php
protected function initMethods()
    {
        if (empty($this->methods)) {
            return;
        }

        if (!is_array($this->methods)) {
            throw new InvalidConfigException('The "methods" option are not an array');
        }

        foreach ($this->methods as $methodName => $handler) {
            $function = $handler instanceof JsExpression ? $handler : new JsExpression($handler);
            $this->clientOptions['methods'][$methodName] = $function;
        }
    }
protected function initMethods()
    {
        if (empty($this->methods)) {
            return;
        }

        if (!is_array($this->methods)) {
            throw new InvalidConfigException('The "methods" option are not an array');
        }

        foreach ($this->methods as $methodName => $handler) {
            $function = $handler instanceof JsExpression ? $handler : new JsExpression($handler);
            $this->clientOptions['methods'][$methodName] = $function;
        }
    }
protected function initMethods ( ) { if ( empty ( $ this -> methods ) ) { return ; } if ( ! is_array ( $ this -> methods ) ) { throw new InvalidConfigException ( 'The "methods" option are not an array' ) ; } foreach ( $ this -> methods as $ methodName => $ handler ) { $ function = $ handler instanceof JsExpression ? $ handler : new JsExpression ( $ handler ) ; $ this -> clientOptions [ 'methods' ] [ $ methodName ] = $ function ; } }
Initializes methods to be mixed into the Vue instance.

@throws InvalidConfigException
Initializes methods to be mixed into the Vue instance .