namespaces = []; if (defined(LOCAL_NAMESPACE)) { $this->namespaces[] = LOCAL_NAMESPACE; } $this->namespaces = array_merge($this->namespaces, $this->getOption(self::OPTION_NAME_SPACES, [])); } public function getNameSpaces(): array { return $this->namespaces; } public function addNameSpaces(string ...$namespaces): void { $this->namespaces = array_merge($this->namespaces, $namespaces); } public function isNamespaceSupported(string $namespace): bool { return in_array($namespace, $this->getNamespaces()); } }