phpDocumentor

EnumDescriptor extends DescriptorAbstract
in package
implements EnumInterface

Descriptor representing a Enum.

Interfaces, Classes, Traits and Enums

EnumInterface
Common interface representing the description of a class.

Table of Contents

$description  : DescriptionDescriptor|null
$errors  : Collection<string|int, Error>
$fileDescriptor  : FileDescriptor|null
$fqsen  : Fqsen
$inheritedElement  : DescriptorAbstract|null
$line  : int
$name  : string
$namespace  : NamespaceDescriptor|string
$package  : PackageDescriptor|string
$summary  : string
$tags  : Collection<string|int, Collection<string|int, TagDescriptor>>
$backedType  : Type|null
$cases  : Collection<string|int, EnumCaseInterface>
$implements  : Collection<string|int, \phpDocumentor\Descriptor\InterfaceDescriptor|\phpDocumentor\Reflection\Fqsen>
References to interfaces that are implemented by this enum.
$methods  : Collection<string|int, MethodDescriptor>
$usedTraits  : Collection<string|int, TraitDescriptor>|Collection<string|int, Fqsen>
__call()  : Collection<string|int, TagDescriptor>|null
Dynamically constructs a set of getters to retrieve tag (collections) with.
__construct()  : mixed
Initializes the all properties representing a collection with a new Collection object.
__toString()  : string
Represents this object by its unique identifier, the Fully Qualified Structural Element Name.
getAuthor()  : Collection<string|int, AuthorDescriptor>
getBackedType()  : Type|null
getCases()  : Collection<string|int, EnumCaseInterface>
getCopyright()  : Collection<string|int, TagDescriptor>
Returns the copyrights for this element.
getDescription()  : DescriptionDescriptor|null
Returns the description for this element.
getErrors()  : Collection<string|int, Error>
Returns all errors that occur in this element.
getFile()  : FileDescriptor|null
Returns the file in which this element resides or null in case the element is not bound to a file.
getFullyQualifiedStructuralElementName()  : Fqsen|null
Returns the Fully Qualified Structural Element Name (FQSEN) for this element.
getInheritedElement()  : DescriptorAbstract|string|Fqsen|null
getInheritedMethods()  : Collection<string|int, MethodDescriptor>
getInterfaces()  : Collection<string|int, \phpDocumentor\Descriptor\InterfaceDescriptor|\phpDocumentor\Reflection\Fqsen>
getLine()  : int
Returns the line number where the definition for this element can be found.
getMagicMethods()  : Collection<string|int, MethodDescriptor>
getMethods()  : Collection<string|int, MethodDescriptor>
getName()  : string
Returns the local name for this element.
getNamespace()  : NamespaceDescriptor|string
Returns the namespace for this element (defaults to global "\")
getPackage()  : PackageDescriptor|null
Returns the package name for this element.
getPath()  : string
Returns the path to the file containing this element relative to the project's root.
getSummary()  : string
Returns the summary which describes this element.
getTags()  : Collection<string|int, Collection<string|int, TagDescriptor>>
Returns the tags associated with this element.
getUsedTraits()  : Collection<string|int, TraitDescriptor>|Collection<string|int, Fqsen>
Returns the traits used by this class.
getVersion()  : Collection<string|int, VersionDescriptor>
Returns the versions for this element.
isDeprecated()  : bool
Checks whether this element is deprecated.
setBackedType()  : void
setCases()  : void
setLocation()  : void
setPackage()  : void
setUsedTraits()  : void
Sets a collection of all traits used by this class.

Properties

$fqsen

protected Fqsen $fqsen

Fully Qualified Structural Element Name; the FQCN including method, property or constant name

$summary

protected string $summary = ''

A summary describing the function of this element in short.

$implements

References to interfaces that are implemented by this enum.

private Collection<string|int, \phpDocumentor\Descriptor\InterfaceDescriptor|\phpDocumentor\Reflection\Fqsen> $implements

Methods

__call()

Dynamically constructs a set of getters to retrieve tag (collections) with.

public __call(string $name, array<string|int, mixed> $arguments) : Collection<string|int, TagDescriptor>|null

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.

Parameters
$name : string
$arguments : array<string|int, mixed>
Return values
Collection<string|int, TagDescriptor>|null

__construct()

Initializes the all properties representing a collection with a new Collection object.

public __construct() : mixed
Return values
mixed

__toString()

Represents this object by its unique identifier, the Fully Qualified Structural Element Name.

public __toString() : string
Return values
string

getBackedType()

public getBackedType() : Type|null
Return values
Type|null

getFullyQualifiedStructuralElementName()

Returns the Fully Qualified Structural Element Name (FQSEN) for this element.

public getFullyQualifiedStructuralElementName() : Fqsen|null
Return values
Fqsen|null

getInterfaces()

public getInterfaces() : Collection<string|int, \phpDocumentor\Descriptor\InterfaceDescriptor|\phpDocumentor\Reflection\Fqsen>
Return values
Collection<string|int, \phpDocumentor\Descriptor\InterfaceDescriptor|\phpDocumentor\Reflection\Fqsen>

getLine()

Returns the line number where the definition for this element can be found.

public getLine() : int
Return values
int

getName()

Returns the local name for this element.

public getName() : string
Return values
string

getPath()

Returns the path to the file containing this element relative to the project's root.

public getPath() : string
Return values
string

getSummary()

Returns the summary which describes this element.

public getSummary() : string

This method will automatically attempt to inherit the parent's summary if this one has none.

Return values
string

isDeprecated()

Checks whether this element is deprecated.

public isDeprecated() : bool
Return values
bool

setBackedType()

public setBackedType(Type|null $type) : void
Parameters
$type : Type|null
Return values
void

setPackage()

public setPackage(mixed $package) : void
Parameters
$package : mixed
Tags
inheritDoc
Return values
void

Search results