public function getFullyQualifiedClassName(string $className, string $defaultNamespace) : string
    {
        $rootNamespace = $this->getRootNamespace();

        // If the class name is already fully-qualified
        if (mb_strpos($className, $rootNamespace) === 0) {
            return $className;
        }

        return trim($defaultNamespace, '\\') . '\\' . $className;
    }
public function getFullyQualifiedClassName(string $className, string $defaultNamespace) : string
    {
        $rootNamespace = $this->getRootNamespace();

        // If the class name is already fully-qualified
        if (mb_strpos($className, $rootNamespace) === 0) {
            return $className;
        }

        return trim($defaultNamespace, '\\') . '\\' . $className;
    }
public function getFullyQualifiedClassName ( string $ className , string $ defaultNamespace ) : string { $ rootNamespace = $ this -> getRootNamespace ( ) ; // If the class name is already fully-qualified if ( mb_strpos ( $ className , $ rootNamespace ) === 0 ) { return $ className ; } return trim ( $ defaultNamespace , '\\' ) . '\\' . $ className ; }
Gets the fully-qualified class name

@param string $className The input class name
@param string $defaultNamespace The default namespace
@return string The fully-qualified class name
Gets the fully - qualified class name