ApiGen\Generator\Resolvers\ElementResolver::resolveContextForSelfProperty PHP 메소드

resolveContextForSelfProperty() 개인적인 메소드

private resolveContextForSelfProperty ( string $definition, integer $pos, ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface $reflectionElement ) : ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface
$definition string
$pos integer
$reflectionElement ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface
리턴 ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface
    private function resolveContextForSelfProperty($definition, $pos, ElementReflectionInterface $reflectionElement)
    {
        $class = $this->getClass(substr($definition, 0, $pos), $reflectionElement->getNamespaceName());
        if ($class === null) {
            $fqnName = Resolver::resolveClassFqn(substr($definition, 0, $pos), $reflectionElement->getNamespaceAliases(), $reflectionElement->getNamespaceName());
            $class = $this->getClass($fqnName);
        }
        return $class;
    }