Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getImports example
$this
->preParser->
setIgnoredAnnotationNames
(
self::
$globalIgnoredNames
)
;
$this
->phpParser =
new
PhpParser
(
)
;
}
/** * {@inheritDoc} */
public
function
getClassAnnotations
(
ReflectionClass
$class
)
{
$this
->parser->
setTarget
(
Target::TARGET_CLASS
)
;
$this
->parser->
setImports
(
$this
->
getImports
(
$class
)
)
;
$this
->parser->
setIgnoredAnnotationNames
(
$this
->
getIgnoredAnnotationNames
(
$class
)
)
;
$this
->parser->
setIgnoredAnnotationNamespaces
(
self::
$globalIgnoredNamespaces
)
;
return
$this
->parser->
parse
(
$class
->
getDocComment
(
)
, 'class ' .
$class
->
getName
(
)
)
;
}
/** * {@inheritDoc} */
public
function
getClassAnnotation
(
ReflectionClass
$class
,
$annotationName
)
{