PHP Class ApiGen\Generator\Resolvers\ElementResolver

Show file Open project: apigen/apigen Class Usage Examples

Public Methods

Method Description
__construct ( ApiGen\Contracts\Parser\ParserStorageInterface $parserStorage )
getClass ( $name, $namespace = '' )
getConstant ( $name, $namespace = '' )
getFunction ( $name, $namespace = '' )
resolveElement ( $definition, $reflectionElement, &$expectedName = null )

Private Methods

Method Description
correctContextForParameterOrClassMember ( ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface | ApiGen\Contracts\Parser\Reflection\ParameterReflectionInterface | ApiGen\Contracts\Parser\Reflection\FunctionReflectionInterface $reflectionElement ) : ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface | ApiGen\Contracts\Parser\Reflection\FunctionReflectionInterface
findElementByNameAndNamespace ( array | ArrayObjec\ArrayObject $elements, string $name, string $namespace ) : ApiGen\Reflection\ReflectionClass | null
isContextUsable ( null | ApiGen\Reflection\ReflectionElement $reflectionElement ) : boolean
isSimpleType ( string $definition ) : boolean
removeEndBrackets ( string $definition ) : string
removeStartDollar ( string $definition ) : string
resolveContextForClassProperty ( string $definition, ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface $reflectionClass, integer $pos ) : ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface
resolveContextForSelfProperty ( string $definition, integer $pos, ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface $reflectionElement ) : ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface
resolveIfInContext ( $definition, ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface $context ) : ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface | ApiGen\Contracts\Parser\Reflection\MethodReflectionInterface | ApiGen\Contracts\Parser\Reflection\PropertyReflectionInterface | null
resolveIfParsed ( string $definition, ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface $reflectionElement ) : ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface | ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface | ApiGen\Contracts\Parser\Reflection\FunctionReflectionInterface | null

Method Details

__construct() public method

public __construct ( ApiGen\Contracts\Parser\ParserStorageInterface $parserStorage )
$parserStorage ApiGen\Contracts\Parser\ParserStorageInterface

getClass() public method

public getClass ( $name, $namespace = '' )

getConstant() public method

public getConstant ( $name, $namespace = '' )

getFunction() public method

public getFunction ( $name, $namespace = '' )

resolveElement() public method

public resolveElement ( $definition, $reflectionElement, &$expectedName = null )