private function namespaceMatches() : bool
    {
        $currentNamespace = ($this->currentNamespace && is_array($this->currentNamespace->name->parts))
            ? $this->currentNamespace->name->toString()
            : '';

        return $currentNamespace === $this->reflectedClass->getNamespaceName();
    }
private function namespaceMatches() : bool
    {
        $currentNamespace = ($this->currentNamespace && is_array($this->currentNamespace->name->parts))
            ? $this->currentNamespace->name->toString()
            : '';

        return $currentNamespace === $this->reflectedClass->getNamespaceName();
    }
private function namespaceMatches ( ) : bool { $ currentNamespace = ( $ this -> currentNamespace && is_array ( $ this -> currentNamespace -> name -> parts ) ) ? $ this -> currentNamespace -> name -> toString ( ) : '' ; return $ currentNamespace === $ this -> reflectedClass -> getNamespaceName ( ) ; }
Checks if the current namespace matches with the one provided with the reflection class

@return bool
Checks if the current namespace matches with the one provided with the reflection class