Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setIgnoredAnnotationNamespaces example
$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
)
{
$annotations
=
$this
->
getClassAnnotations
(
$class
)
;