ReflectionClass::inNamespace

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

Description

public function inNamespace(): bool

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

Checks if this class is defined in a namespace.

Return Values

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