[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/zendframework/zend-code/src/Annotation/Parser/ -> GenericAnnotationParser.php (summary)

Zend Framework (http://framework.zend.com/)

Copyright: Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
File Size: 237 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

GenericAnnotationParser:: (8 methods):
  onCreateAnnotation()
  registerAnnotation()
  registerAnnotations()
  hasAnnotation()
  setAlias()
  normalizeAlias()
  hasAlias()
  resolveAlias()


Class: GenericAnnotationParser  - X-Ref

Generic annotation parser

Expects registration of AnnotationInterface instances. Such instances
will be passed annotation content to their initialize() method, which
they are then responsible for parsing.
onCreateAnnotation(EventInterface $e)   X-Ref
Listen to onCreateAnnotation, and attempt to return an annotation object
instance.

If the annotation class or alias is not registered, immediately returns
false. Otherwise, resolves the class, clones it, and, if any content is
present, calls {@link AnnotationInterface::initialize()} with the
content.

param: EventInterface $e
return: false|AnnotationInterface

registerAnnotation($annotation)   X-Ref
Register annotations

param: string|AnnotationInterface $annotation String class name of an
return: void

registerAnnotations($annotations)   X-Ref
Register many annotations at once

param: array|Traversable $annotations
return: GenericAnnotationParser

hasAnnotation($class)   X-Ref
Checks if the manager has annotations for a class

param: string $class
return: bool

setAlias($alias, $class)   X-Ref
Alias an annotation name

param: string $alias
param: string $class May be either a registered annotation name or another alias
return: GenericAnnotationParser

normalizeAlias($alias)   X-Ref
Normalize an alias name

param: string $alias
return: string

hasAlias($alias)   X-Ref
Do we have an alias by the provided name?

param: string $alias
return: bool

resolveAlias($alias)   X-Ref
Resolve an alias to a class name

param: string $alias
return: string



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1