ReflectionClass::inNamespace

( excerpt from http://php.net/manual/en/reflectionclass.innamespace.php )

public function inNamespace(): bool;

Checks if this class is defined in a namespace.

Returns

  • bool - Returns TRUE on success or FALSE on failure.