public function callLocal(...$args)
    {
        if (!sizeof($args)) {
            return $this;
        }
        $method = array_shift($args);
        $p = [
            'method' => $method,
            'arguments' => $args,
        ];
        $this->onPacket($p);
        return $this;
    }
public function callLocal(...$args)
    {
        if (!sizeof($args)) {
            return $this;
        }
        $method = array_shift($args);
        $p = [
            'method' => $method,
            'arguments' => $args,
        ];
        $this->onPacket($p);
        return $this;
    }
public function callLocal ( ... $ args ) { if ( ! sizeof ( $ args ) ) { return $ this ; } $ method = array_shift ( $ args ) ; $ p = [ 'method' => $ method , 'arguments' => $ args , ] ; $ this -> onPacket ( $ p ) ; return $ this ; }
Calls a local method
@param  string $method Method name
@param  mixed ...$args Arguments
@return this
Calls a local method