BetterReflection\Reflection\ReflectionClass::inNamespace PHP Метод

inNamespace() публичный Метод

Decide if this class is part of a namespace. Returns false if the class is in the global namespace or does not have a specified namespace.
public inNamespace ( ) : boolean
Результат boolean
    public function inNamespace()
    {
        return null !== $this->declaringNamespace && null !== $this->declaringNamespace->name;
    }

Usage Example

Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function inNamespace()
 {
     return $this->betterReflectionClass->inNamespace();
 }