ClassInterface
extends
ElementInterface, ChildInterface, TypeInterface
in
Common interface representing the description of a class.
Tags
Table of Contents
Methods
- __toString() : string
- getConstants() : Collection<string|int, ConstantInterface>
- getDescription() : DescriptionDescriptor
- Returns the description for this element.
- getEndLocation() : Location|null
- Returns the end location where the definition for this element can be found.
- getErrors() : Collection<string|int, Error>
- getFile() : FileInterface|null
- Returns the file associated with the parent class or trait.
- getFullyQualifiedStructuralElementName() : Fqsen|null
- Returns the Fully Qualified Structural Element Name (FQSEN) for this element.
- getInheritedConstants() : Collection<string|int, ConstantInterface>
- getInheritedMethods() : Collection<string|int, MethodInterface>
- getInheritedProperties() : Collection<string|int, PropertyInterface>
- getInterfaces() : Collection<string|int, InterfaceInterface|Fqsen>
- getInterfacesIncludingInherited() : Collection<string|int, InterfaceInterface|Fqsen>
- getLine() : int
- Returns the line number where this element may be found.
- getMethods() : Collection<string|int, MethodInterface>
- getName() : string
- Returns the local name for this element.
- getNamespace() : NamespaceInterface|string
- Returns the namespace for this element (defaults to global "\")
- getPackage() : PackageInterface|null
- Returns the package name for this element.
- getParent() : ElementInterface|Fqsen|string|null
- Returns the parent for this descriptor.
- getPath() : string
- Returns the file location for this element relative to the project root.
- getProperties() : Collection<string|int, PropertyInterface>
- getSummary() : string
- Returns the summary describing this element.
- getTags() : Collection<string|int, Collection<string|int, TagDescriptor>>
- Returns all tags associated with this element.
- getUsedTraits() : Collection<string|int, TraitInterface|Fqsen>
- Returns the traits used by this class.
- isAbstract() : bool
- isFinal() : bool
- setAbstract() : void
- setConstants() : void
- setDescription() : void
- Sets a longer description for this element.
- setFinal() : void
- setFullyQualifiedStructuralElementName() : void
- Sets the Fully Qualified Structural Element Name (FQSEN) for this element.
- setInterfaces() : void
- setLocation() : void
- Sets the file and location for this element.
- setMethods() : void
- setName() : void
- Sets the local name for this element.
- setParent() : void
- Sets the parent for this Descriptor.
- setProperties() : void
- setSummary() : void
- Sets a summary describing this element.
- setUsedTraits() : void
- Sets a collection of all traits used by this class.
Methods
__toString()
public
__toString() : string
Return values
stringgetConstants()
public
getConstants() : Collection<string|int, ConstantInterface>
Return values
Collection<string|int, ConstantInterface>getDescription()
Returns the description for this element.
public
getDescription() : DescriptionDescriptor
This method will automatically attempt to inherit the parent's description if this one has none.
Return values
DescriptionDescriptorgetEndLocation()
Returns the end location where the definition for this element can be found.
public
getEndLocation() : Location|null
Return values
Location|nullgetErrors()
public
getErrors() : Collection<string|int, Error>
Return values
Collection<string|int, Error>getFile()
Returns the file associated with the parent class or trait.
public
getFile() : FileInterface|null
Return values
FileInterface|nullgetFullyQualifiedStructuralElementName()
Returns the Fully Qualified Structural Element Name (FQSEN) for this element.
public
getFullyQualifiedStructuralElementName() : Fqsen|null
Return values
Fqsen|nullgetInheritedConstants()
public
getInheritedConstants() : Collection<string|int, ConstantInterface>
Return values
Collection<string|int, ConstantInterface>getInheritedMethods()
public
getInheritedMethods() : Collection<string|int, MethodInterface>
Return values
Collection<string|int, MethodInterface>getInheritedProperties()
public
getInheritedProperties() : Collection<string|int, PropertyInterface>
Return values
Collection<string|int, PropertyInterface>getInterfaces()
public
getInterfaces() : Collection<string|int, InterfaceInterface|Fqsen>
Return values
Collection<string|int, InterfaceInterface|Fqsen>getInterfacesIncludingInherited()
public
getInterfacesIncludingInherited() : Collection<string|int, InterfaceInterface|Fqsen>
Return values
Collection<string|int, InterfaceInterface|Fqsen>getLine()
Returns the line number where this element may be found.
public
getLine() : int
Tags
Return values
intgetMethods()
public
getMethods() : Collection<string|int, MethodInterface>
Return values
Collection<string|int, MethodInterface>getName()
Returns the local name for this element.
public
getName() : string
Return values
stringgetNamespace()
Returns the namespace for this element (defaults to global "\")
public
getNamespace() : NamespaceInterface|string
Return values
NamespaceInterface|stringgetPackage()
Returns the package name for this element.
public
getPackage() : PackageInterface|null
Return values
PackageInterface|nullgetParent()
Returns the parent for this descriptor.
public
getParent() : ElementInterface|Fqsen|string|null
Return values
ElementInterface|Fqsen|string|nullgetPath()
Returns the file location for this element relative to the project root.
public
getPath() : string
Return values
stringgetProperties()
public
getProperties() : Collection<string|int, PropertyInterface>
Return values
Collection<string|int, PropertyInterface>getSummary()
Returns the summary describing this element.
public
getSummary() : string
Return values
stringgetTags()
Returns all tags associated with this element.
public
getTags() : Collection<string|int, Collection<string|int, TagDescriptor>>
Return values
Collection<string|int, Collection<string|int, TagDescriptor>>getUsedTraits()
Returns the traits used by this class.
public
getUsedTraits() : Collection<string|int, TraitInterface|Fqsen>
Returned values may either be a string (when the Trait is not in this project) or a TraitDescriptor.
Return values
Collection<string|int, TraitInterface|Fqsen>isAbstract()
public
isAbstract() : bool
Return values
boolisFinal()
public
isFinal() : bool
Return values
boolsetAbstract()
public
setAbstract(bool $abstract) : void
Parameters
- $abstract : bool
setConstants()
public
setConstants(Collection<string|int, ConstantInterface> $constants) : void
Parameters
- $constants : Collection<string|int, ConstantInterface>
setDescription()
Sets a longer description for this element.
public
setDescription(DescriptionDescriptor $description) : void
Parameters
- $description : DescriptionDescriptor
setFinal()
public
setFinal(bool $final) : void
Parameters
- $final : bool
setFullyQualifiedStructuralElementName()
Sets the Fully Qualified Structural Element Name (FQSEN) for this element.
public
setFullyQualifiedStructuralElementName(Fqsen $name) : void
Parameters
- $name : Fqsen
setInterfaces()
public
setInterfaces(Collection<string|int, InterfaceInterface|Fqsen> $implements) : void
Parameters
- $implements : Collection<string|int, InterfaceInterface|Fqsen>
setLocation()
Sets the file and location for this element.
public
setLocation(FileInterface $file, Location $startLocation) : void
Parameters
- $file : FileInterface
- $startLocation : Location
setMethods()
public
setMethods(Collection<string|int, MethodInterface> $methods) : void
Parameters
- $methods : Collection<string|int, MethodInterface>
setName()
Sets the local name for this element.
public
setName(string $name) : void
Parameters
- $name : string
setParent()
Sets the parent for this Descriptor.
public
setParent(ElementInterface|Fqsen|string|null $parent) : void
Parameters
- $parent : ElementInterface|Fqsen|string|null
setProperties()
public
setProperties(Collection<string|int, PropertyInterface> $properties) : void
Parameters
- $properties : Collection<string|int, PropertyInterface>
setSummary()
Sets a summary describing this element.
public
setSummary(string $summary) : void
Parameters
- $summary : string
setUsedTraits()
Sets a collection of all traits used by this class.
public
setUsedTraits(Collection<string|int, TraitInterface|Fqsen> $usedTraits) : void
Parameters
- $usedTraits : Collection<string|int, TraitInterface|Fqsen>