public isTaggedWith ( string $tag ) : boolean | ||
$tag | string | Tag name to check for |
return | boolean | TRUE if such a tag has been defined, otherwise FALSE |
public function isTaggedWith($tag)
{
return $this->getDocCommentParser()->isTaggedWith($tag);
}
/** * @test */ public function proxyClassesStillContainAnnotationsFromItsOriginalClass() { $class = new ClassReflection(Fixtures\PrototypeClassA::class); $method = $class->getMethod('setSomeProperty'); $this->assertTrue($class->implementsInterface(ProxyInterface::class)); $this->assertTrue($class->isTaggedWith('scope')); $this->assertTrue($method->isTaggedWith('session')); }