src/phpDocumentor/Compiler/Linker/Linker.php
protected function replacePseudoTypes($fqsen, $container)
    {
        $pseudoTypes = array('self', '$this');
        foreach ($pseudoTypes as $pseudoType) {
            if ((strpos($fqsen, $pseudoType . '::') === 0 || $fqsen === $pseudoType) && $container) {
                $fqsen = $container->getFullyQualifiedStructuralElementName()
                    . substr($fqsen, strlen($pseudoType));
            }
        }

        return $fqsen;
    }
protected function replacePseudoTypes($fqsen, $container)
    {
        $pseudoTypes = array('self', '$this');
        foreach ($pseudoTypes as $pseudoType) {
            if ((strpos($fqsen, $pseudoType . '::') === 0 || $fqsen === $pseudoType) && $container) {
                $fqsen = $container->getFullyQualifiedStructuralElementName()
                    . substr($fqsen, strlen($pseudoType));
            }
        }

        return $fqsen;
    }
protected function replacePseudoTypes ( $ fqsen , $ container ) { $ pseudoTypes = array ( 'self' , '$this' ) ; foreach ( $ pseudoTypes as $ pseudoType ) { if ( ( strpos ( $ fqsen , $ pseudoType . '::' ) === 0 || $ fqsen === $ pseudoType ) && $ container ) { $ fqsen = $ container -> getFullyQualifiedStructuralElementName ( ) . substr ( $ fqsen , strlen ( $ pseudoType ) ) ; } } return $ fqsen ; }
Replaces pseudo-types, such as `self`, into a normalized version based on the last container that was
encountered.

@param string $fqsen
@param DescriptorAbstract|null $container

@return string
Replaces pseudo - types such as self into a normalized version based on the last container that was encountered .