file-fetcher
Classes | Variables
04-adding-your-own-tag.php File Reference

Classes

class  MyTag
 

Variables

 $docComment =
 
 $customTags = ['my-tag' => MyTag::class]
 
 $factory = DocBlockFactory::createInstance($customTags)
 
 $docblock = $factory->create($docComment)
 
 $customTagObjects = $docblock->getTagsByName('my-tag')
 
 $serializer = new Serializer()
 
 $reconstitutedDocComment = $serializer->getDocComment($docblock)
 

Variable Documentation

◆ $customTagObjects

$customTagObjects = $docblock->getTagsByName('my-tag')

◆ $customTags

$customTags = ['my-tag' => MyTag::class]

◆ $docblock

$docblock = $factory->create($docComment)

◆ $docComment

$docComment =

◆ $factory

$factory = DocBlockFactory::createInstance($customTags)

◆ $reconstitutedDocComment

$reconstitutedDocComment = $serializer->getDocComment($docblock)

◆ $serializer

$serializer = new Serializer()