call($parameters, $method); } /** * protected call * * @param array $parameters * @param string $type = NULL * * @return mixed */ protected function call($parameters, $type = NULL) { # For example ReflectionClass # A usage like ReflectionClass is obtained by using Reflect::class. $class = (self::fabrication['prefix'] ?? NULL) . $type . (self::fabrication['suffix'] ?? NULL); # It can be thought of as a factory that produces a class. return (new $class(...$parameters)); } }