MethodInterface
extends
ElementInterface, TypeInterface, InheritsFromElement, ChildInterface, AttributedInterface
in
Describes the public interface of the description for a method.
Table of Contents
Methods
- __toString() : string
- addAttribute() : void
- getArguments() : Collection<string|int, ArgumentInterface>
- getAttributes() : Collection<string|int, AttributeInterface>
- 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>
- getFullyQualifiedStructuralElementName() : Fqsen|null
- Returns the Fully Qualified Structural Element Name (FQSEN) for this element.
- getInheritedElement() : ElementInterface|string|Fqsen|null
- Returns the element from which this element inherits, or null if it doesn't inherit any information.
- getLine() : int
- Returns the line number where this element may be found.
- 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.
- getParam() : Collection<string|int, ParamDescriptor>
- 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.
- getReturn() : Collection<string|int, ReturnDescriptor>
- getSummary() : string
- Returns the summary describing this element.
- getTags() : Collection<string|int, Collection<string|int, TagDescriptor>>
- Returns all tags associated with this element.
- isAbstract() : bool
- isFinal() : bool
- isStatic() : bool
- setAbstract() : 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.
- setLocation() : void
- Sets the file and location for this element.
- setName() : void
- Sets the local name for this element.
- setParent() : void
- Sets the parent for this Descriptor.
- setStatic() : void
- setSummary() : void
- Sets a summary describing this element.
- setVisibility() : void
Methods
__toString()
public
__toString() : string
Return values
stringaddAttribute()
public
addAttribute(AttributeInterface $attribute) : void
Parameters
- $attribute : AttributeInterface
getArguments()
public
getArguments() : Collection<string|int, ArgumentInterface>
Return values
Collection<string|int, ArgumentInterface>getAttributes()
public
getAttributes() : Collection<string|int, AttributeInterface>
Return values
Collection<string|int, AttributeInterface>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>getFullyQualifiedStructuralElementName()
Returns the Fully Qualified Structural Element Name (FQSEN) for this element.
public
getFullyQualifiedStructuralElementName() : Fqsen|null
Return values
Fqsen|nullgetInheritedElement()
Returns the element from which this element inherits, or null if it doesn't inherit any information.
public
getInheritedElement() : ElementInterface|string|Fqsen|null
Return values
ElementInterface|string|Fqsen|nullgetLine()
Returns the line number where this element may be found.
public
getLine() : int
Tags
Return values
intgetName()
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|nullgetParam()
public
getParam() : Collection<string|int, ParamDescriptor>
Return values
Collection<string|int, ParamDescriptor>getParent()
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
stringgetReturn()
public
getReturn() : Collection<string|int, ReturnDescriptor>
Return values
Collection<string|int, ReturnDescriptor>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>>isAbstract()
public
isAbstract() : bool
Return values
boolisFinal()
public
isFinal() : bool
Return values
boolisStatic()
public
isStatic() : bool
Return values
boolsetAbstract()
public
setAbstract(bool $abstract) : void
Parameters
- $abstract : bool
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
setLocation()
Sets the file and location for this element.
public
setLocation(FileInterface $file, Location $startLocation) : void
Parameters
- $file : FileInterface
- $startLocation : Location
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
setStatic()
public
setStatic(bool $static) : void
Parameters
- $static : bool
setSummary()
Sets a summary describing this element.
public
setSummary(string $summary) : void
Parameters
- $summary : string
setVisibility()
public
setVisibility(string $visibility) : void
Parameters
- $visibility : string