protected function createCallback(string $method): \Closure
    {
        return \Closure::bind(static function (...$args) use ($method) {
            return self::$method(...$args);
        }, null, $this->type);
    }
protected function createCallback(string $method): \Closure
    {
        return \Closure::bind(static function (...$args) use ($method) {
            return self::$method(...$args);
        }, null, $this->type);
    }
protected function createCallback ( string $ method ) : \ Closure { return \ Closure :: bind ( static function ( ... $ args ) use ( $ method ) { return self :: $ method ( ... $ args ) ; } , null , $ this -> type ) ; }
Create a closure that can execute a protected or private static method.

@param string $method Name of the method to be called.
@return \Closure
Create a closure that can execute a protected or private static method .