1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Reflection;
4:
5: /**
6: * Provides the current namespace context.
7: *
8: * Used by the type resolver and PHPDoc parser to resolve relative class names
9: * against the current namespace and use statements.
10: *
11: * @api
12: * @api-do-not-implement
13: */
14: interface NamespaceAnswerer
15: {
16:
17: /** @return non-empty-string|null */
18: public function getNamespace(): ?string;
19:
20: }
21: