$origin, '#' => __CLASS__]); } return Singleton::class($class); // @codeCoverageIgnore } /** * Protected static call */ protected static function call($method, $parameters) { if( method_exists(self::$container, $method) ) { return self::$container->$method(...$parameters); } throw new InvalidContainerMethod(NULL, ['%' => $method, '#' => __CLASS__]); } }