SilverLeague\IDEAnnotator\Generators\OrmTagGenerator
OrmTagGenerator This class generates DocBlock Tags for the ORM properties of a Dataobject of DataExtension and adds $owner Tags for added DataExtensions
Synopsis
class OrmTagGenerator
extends AbstractTagGenerator
{
- // members
- protected static array $propertyTypes = ;
- protected static array $dbfield_tagnames = ;
- // Inherited members from AbstractTagGenerator
- protected string $className;
- protected array $existingTags;
- protected ReflectionClass $reflector;
- protected array $tags;
- // methods
- protected void generateTags()
- protected void generateDBTags()
- public string getTagNameForDBField()
- protected void generateBelongsToTags()
- protected mixed resolveDotNotation()
- protected void generateHasOneTags()
- protected void generateHasManyTags()
- protected void generateTagsForDataLists()
- protected void generateManyManyTags()
- protected void generateBelongsManyManyTags()
- // Inherited methods from AbstractTagGenerator
- public void __construct()
- public array getSupportedTagTypes()
- protected abstract void generateTags()
- public array getTags()
- protected void generateExtensionsTags()
- protected mixed getClassConfig()
- protected string getAnnotationClassName()
- protected void pushMixinTag()
- protected Tag pushTagWithExistingComment()
- public string getExistingTagCommentByTagString()
- public array getExistingTags()
- protected void generateOwnerTags()
- protected array getOwnerClasses()
- protected void pushPropertyTag()
- protected void pushMethodTag()
Hierarchy
Members
protected
- $className
—
string
The current class we are working with - $dbfield_tagnames
—
array
Default tagname is will be @string . - $existingTags
—
array
The existing tags of the class we are working with - $propertyTypes — array
- $reflector — ReflectionClass
Methods
protected
- generateBelongsManyManyTags() — Generate the $belongs_many_many method values.
- generateBelongsToTags() — Generate the $belongs_to property values.
- generateDBTags() — Generate the $db property values.
- generateHasManyTags() — Generate the $has_many method values.
- generateHasOneTags() — Generate the $has_one property and method values.
- generateManyManyTags() — Generate the $many_many method values.
- generateTags() — Generates all ORM Tags
- generateTagsForDataLists()
- resolveDotNotation()
public
Inherited from SilverLeague\IDEAnnotator\Generators\AbstractTagGenerator
protected
- generateExtensionsTags() — Generate the mixins for DataExtensions.
- generateOwnerTags() — Generate the Owner-properties for extensions.
- generateTags()
- getAnnotationClassName() — Check if we need to use the short name for a class
- getClassConfig()
- getOwnerClasses() — Get all owner classes of the given extension class
- pushMethodTag()
- pushMixinTag()
- pushPropertyTag()
- pushTagWithExistingComment()
public
- getExistingTagCommentByTagString()
- getExistingTags()
- getSupportedTagTypes() — List of supported tags.
- getTags()