$fqsen
$fqsen : string
Represents a file in the project.
$namespace : \phpDocumentor\Descriptor\NamespaceDescriptor
$fileDescriptor : \phpDocumentor\Descriptor\FileDescriptor|null
$tags : \phpDocumentor\Descriptor\Collection
$errors : \phpDocumentor\Descriptor\Collection
$inheritedElement : \phpDocumentor\Descriptor\DescriptorAbstract|null
$namespaceAliases : \phpDocumentor\Descriptor\Collection
$includes : \phpDocumentor\Descriptor\Collection
$constants : \phpDocumentor\Descriptor\Collection
$functions : \phpDocumentor\Descriptor\Collection
$classes : \phpDocumentor\Descriptor\Collection
$interfaces : \phpDocumentor\Descriptor\Collection
$traits : \phpDocumentor\Descriptor\Collection
$markers : \phpDocumentor\Descriptor\Collection
setNamespace(\phpDocumentor\Descriptor\NamespaceDescriptor|string $namespace)
Sets the namespace (name) for this element.
\phpDocumentor\Descriptor\NamespaceDescriptor|string | $namespace |
getNamespace() : \phpDocumentor\Descriptor\NamespaceDescriptor|string|null
Returns the namespace for this element or null if none is attached.
setLocation(\phpDocumentor\Descriptor\FileDescriptor $file, integer $line) : void
Sets the file and linenumber where this element is at.
\phpDocumentor\Descriptor\FileDescriptor | $file | |
integer | $line |
getFile() : \phpDocumentor\Descriptor\FileDescriptor|null
Returns the file in which this element resides or null in case the element is not bound to a file.
.
setFile(\phpDocumentor\Descriptor\FileDescriptor $file) : false
Sets the file to which this element is associated.
\phpDocumentor\Descriptor\FileDescriptor | $file |
setTags(\phpDocumentor\Descriptor\Collection $tags) : void
Sets the tags associated with this element.
\phpDocumentor\Descriptor\Collection | $tags |
getTags() : \phpDocumentor\Descriptor\Collection
Returns the tags associated with this element.
setPackage(\phpDocumentor\Descriptor\PackageDescriptor $package) : void
Sets the name of the package to which this element belongs.
\phpDocumentor\Descriptor\PackageDescriptor | $package |
getPackage() : \phpDocumentor\Descriptor\PackageDescriptor
Returns the package name for this element.
getAuthor() : \phpDocumentor\Descriptor\Collection
getVersion() : \phpDocumentor\Descriptor\Collection
Returns the versions for this element.
getCopyright() : \phpDocumentor\Descriptor\Collection
Returns the copyrights for this element.
setErrors(\phpDocumentor\Descriptor\Collection $errors) : void
Sets a list of all errors associated with this element.
\phpDocumentor\Descriptor\Collection | $errors |
getErrors() : \phpDocumentor\Descriptor\Collection
Returns all errors that occur in this element.
__call(string $name, array<mixed,mixed> $arguments) : \phpDocumentor\Descriptor\Collection|null
Dynamically constructs a set of getters to retrieve tag (collections) with.
Important: __call() is not a fast method of access; it is preferred to directly use the getTags() collection. This interface is provided to allow for uniform and easy access to certain tags.
string | $name | |
array<mixed,mixed> | $arguments |
getInheritedElement() : \phpDocumentor\Descriptor\DescriptorAbstract|null
getNamespaceAliases() : \phpDocumentor\Descriptor\Collection
Returns the namespace aliases that have been defined in this file.
setNamespaceAliases(\phpDocumentor\Descriptor\Collection $namespaceAliases) : void
Sets the collection of namespace aliases for this file.
\phpDocumentor\Descriptor\Collection | $namespaceAliases |
getIncludes() : \phpDocumentor\Descriptor\Collection
Returns a list of all includes that have been declared in this file.
setIncludes(\phpDocumentor\Descriptor\Collection $includes) : void
Sets a list of all includes that have been declared in this file.
\phpDocumentor\Descriptor\Collection | $includes |
getConstants() : \phpDocumentor\Descriptor\Collection
Returns a list of constant descriptors contained in this file.
setConstants(\phpDocumentor\Descriptor\Collection $constants) : void
Sets a list of constant descriptors contained in this file.
\phpDocumentor\Descriptor\Collection | $constants |
getFunctions() : \phpDocumentor\Descriptor\Collection|array<mixed,\phpDocumentor\Descriptor\FunctionInterface>
Returns a list of function descriptors contained in this file.
setFunctions(\phpDocumentor\Descriptor\Collection $functions) : void
Sets a list of function descriptors contained in this file.
\phpDocumentor\Descriptor\Collection | $functions |
getClasses() : \phpDocumentor\Descriptor\Collection|array<mixed,\phpDocumentor\Descriptor\ClassInterface>
Returns a list of class descriptors contained in this file.
setClasses(\phpDocumentor\Descriptor\Collection $classes) : void
Sets a list of class descriptors contained in this file.
\phpDocumentor\Descriptor\Collection | $classes |
getInterfaces() : \phpDocumentor\Descriptor\Collection|array<mixed,\phpDocumentor\Descriptor\InterfaceInterface>
Returns a list of interface descriptors contained in this file.
setInterfaces(\phpDocumentor\Descriptor\Collection $interfaces) : void
Sets a list of interface descriptors contained in this file.
\phpDocumentor\Descriptor\Collection | $interfaces |
getTraits() : \phpDocumentor\Descriptor\Collection|array<mixed,\phpDocumentor\Descriptor\TraitInterface>
Returns a list of trait descriptors contained in this file.
setTraits(\phpDocumentor\Descriptor\Collection $traits) : void
Sets a list of trait descriptors contained in this file.
\phpDocumentor\Descriptor\Collection | $traits |
getMarkers() : \phpDocumentor\Descriptor\Collection
Returns a series of markers contained in this file.
A marker is a special inline comment that starts with a keyword and is followed by a single line description.
Example:
// TODO: This is an item that needs to be done.
setMarkers(\phpDocumentor\Descriptor\Collection $markers) : void
Sets a series of markers contained in this file.
\phpDocumentor\Descriptor\Collection | $markers |
getAllErrors() : \phpDocumentor\Descriptor\Collection
Returns a list of all errors in this file and all its child elements.