FileInterface
extends
ElementInterface, ContainerInterface
in
Describes the public interface for a description of a File.
Table of Contents
Methods
- getClasses() : Collection<string|int, ClassInterface>
- 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.
- getEnums() : Collection<string|int, EnumInterface>
- getErrors() : Collection<string|int, Error>
- getFullyQualifiedStructuralElementName() : Fqsen|null
- Returns the Fully Qualified Structural Element Name (FQSEN) for this element.
- getFunctions() : Collection<string|int, FunctionInterface>
- getHash() : string
- getIncludes() : Collection<string|int, string>
- getInterfaces() : Collection<string|int, InterfaceInterface>
- 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 "\")
- getNamespaceAliases() : Collection<string|int, NamespaceInterface|Fqsen>
- getPackage() : PackageInterface|null
- Returns the package name for this element.
- getPath() : string
- Returns the file location for this element relative to the project root.
- getSource() : string|null
- getSummary() : string
- Returns the summary describing this element.
- getTags() : Collection<string|int, Collection<string|int, TagDescriptor>>
- Returns all tags associated with this element.
- getTraits() : Collection<string|int, TraitInterface>
- setDescription() : void
- Sets a longer description for this element.
- 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.
- setSource() : void
- setSummary() : void
- Sets a summary describing this element.
Methods
getClasses()
public
getClasses() : Collection<string|int, ClassInterface>
Return values
Collection<string|int, ClassInterface>getConstants()
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|nullgetEnums()
public
getEnums() : Collection<string|int, EnumInterface>
Return values
Collection<string|int, EnumInterface>getErrors()
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|nullgetFunctions()
public
getFunctions() : Collection<string|int, FunctionInterface>
Return values
Collection<string|int, FunctionInterface>getHash()
public
getHash() : string
Return values
stringgetIncludes()
public
getIncludes() : Collection<string|int, string>
Return values
Collection<string|int, string>getInterfaces()
public
getInterfaces() : Collection<string|int, InterfaceInterface>
Return values
Collection<string|int, InterfaceInterface>getLine()
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|stringgetNamespaceAliases()
public
getNamespaceAliases() : Collection<string|int, NamespaceInterface|Fqsen>
Return values
Collection<string|int, NamespaceInterface|Fqsen>getPackage()
Returns the package name for this element.
public
getPackage() : PackageInterface|null
Return values
PackageInterface|nullgetPath()
Returns the file location for this element relative to the project root.
public
getPath() : string
Return values
stringgetSource()
public
getSource() : string|null
Return values
string|nullgetSummary()
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>>getTraits()
public
getTraits() : Collection<string|int, TraitInterface>
Return values
Collection<string|int, TraitInterface>setDescription()
Sets a longer description for this element.
public
setDescription(DescriptionDescriptor $description) : void
Parameters
- $description : DescriptionDescriptor
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
setSource()
public
setSource(string|null $source) : void
Parameters
- $source : string|null
setSummary()
Sets a summary describing this element.
public
setSummary(string $summary) : void
Parameters
- $summary : string