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;
    }