* @throws NotFoundExceptionInterface If not gettable. */ public function getClass(string $id): ReflectionClass; /** * Get a service by a class name. A service should be bound to a class or interface. * * @template T of object * @param class-string $className A class name or interface name. * @return T A service instance. * @throws NotFoundExceptionInterface If not gettable. */ public function getByClass(string $className): object; }