Skip to content

final class EnumElement

Source Code

Represents an Enum structural element.

NamespaceBeastBytes\CodPhp\Element
Inheritance

BeastBytes\CodPhp\Element\EnumElement
BeastBytes\CodPhp\Element\ObjectElement
BeastBytes\CodPhp\Element\Element

Properties

$ancestors

Ancestors of the element indexed by FQCN.

TypeRead/WriteDefault
arrayRead[]

Declared in BeastBytes\CodPhp\Element\ObjectElement


$backingType

The Backing type or null if not backed

TypeRead/WriteDefault
ReflectionType|nullRead

Declared in BeastBytes\CodPhp\Element\EnumElement


$canHaveMethodTag

true if the element can have a @method tag, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$canHavePropertyTag

true if the element can have a @property, @property-read, or @property-write tag, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$cases

Cases

TypeRead/WriteDefault
arrayRead[]

Declared in BeastBytes\CodPhp\Element\EnumElement


$constants

Public constants defined in the element. Enum cases are not included - use the cases property.

TypeRead/WriteDefault
arrayRead[]

Declared in BeastBytes\CodPhp\Element\ObjectElement


Element copyright or null if the element does not have a @copyright tag.

TypeRead/WriteDefault
string|nullRead

Declared in BeastBytes\CodPhp\Element\Element


$deprecationNotice

Element deprecation notice or null if the element does not have a @deprecated tag.

TypeRead/WriteDefault
string|nullRead

Declared in BeastBytes\CodPhp\Element\Element


$description

Element description or null if the element does not have a description.

TypeRead/WriteDefault
string|nullRead

Declared in BeastBytes\CodPhp\Element\Element


$elementType

Type of element.

TypeRead/WriteDefault
stringRead

Declared in BeastBytes\CodPhp\Element\Element


$fqcn

FQCN of the element's object

TypeRead/WriteDefault
stringRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$hasAncestors

true if the element has ancestors, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$hasConstants

true if the element has public constants, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$hasDescription

true if the element has a description, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\Element


$hasDocBlock

true if the element has a docBlock, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\Element


$hasMethods

true if the element has methods, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$hasSubclasses

true if the element has subclasses, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$hasSummary

true if the element has a summary, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\Element


$implementsInterfaces

true if the element implements interfaces, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$inheritance

The inheritance path for the element; $this and its ancestors.

TypeRead/WriteDefault
arrayRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$inheritanceLevel

Inheritence level to show.

TypeRead/WriteDefault
BeastBytes\CodPhp\InheritanceLevelRead/Write

Declared in BeastBytes\CodPhp\Element\ObjectElement


$interfaces

Interfaces implemented by the element.

TypeRead/WriteDefault
arrayRead[]

Declared in BeastBytes\CodPhp\Element\ObjectElement


$isBacked

true if the enum is backed, false if not

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\EnumElement


$isInApi

true if the element is in the API, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\Element


$linkTags

@link tags normalised to Link objects.

TypeRead/WriteDefault
arrayRead

Declared in BeastBytes\CodPhp\Element\Element


$methodTags

Array of @method tags

TypeRead/WriteDefault
arrayRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$methods

Methods implemented by the element.

TypeRead/WriteDefault
arrayRead[]

Declared in BeastBytes\CodPhp\Element\ObjectElement


$name

Element name.

TypeRead/WriteDefault
stringRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$namespace

Object namespace.

TypeRead/WriteDefault
stringRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$propertyReadTags

Array of @property-read tags

TypeRead/WriteDefault
arrayRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$propertyTags

Array of @property tags

TypeRead/WriteDefault
arrayRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$propertyWriteTags

Array of @property-write tags

TypeRead/WriteDefault
arrayRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$rootNamespace

Root namespace being documented.

TypeRead/WriteDefault
stringRead/Write

Declared in BeastBytes\CodPhp\Element\Element


$seeTags

@see tags normalised to Link objects.

TypeRead/WriteDefault
arrayRead

Declared in BeastBytes\CodPhp\Element\Element


$since

Content of the element's @since tag, or null if the element does not have a @since tag.

TypeRead/WriteDefault
string|nullRead

Declared in BeastBytes\CodPhp\Element\Element


$subclasses

Subclasses of the element.

TypeRead/WriteDefault
arrayRead[]

Declared in BeastBytes\CodPhp\Element\ObjectElement


$summary

Element summary or null if the element does not have a summary.

TypeRead/WriteDefault
string|nullRead

Declared in BeastBytes\CodPhp\Element\Element


$traits

Traits used by the element.

TypeRead/WriteDefault
arrayRead[]

Declared in BeastBytes\CodPhp\Element\ObjectElement


$usesTraits

true if the element uses traits, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\ObjectElement


$version

Content of the element's @version tag, or null if the element does not have a @version tag.

TypeRead/WriteDefault
string|nullRead

Declared in BeastBytes\CodPhp\Element\Element


Methods

getElements()

Returns object elements, optionally filtered by element type.

public function getElements(string|null $type = null): array
$typestring|nullType (FQCN) of element to return; `null` returns all elements.
returnarrayObject elements.

Declared in BeastBytes\CodPhp\Element\Element


hasTag()

Returns a value indicating whether the element has the specified tag.

public function hasTag(string $tag): bool
$tagstringName of the tag.
returnbool`true` if the element has the specified taf, `false` if not.

Declared in BeastBytes\CodPhp\Element\Element


pathTo()

Returns the relative path from this element to the given element.

public function pathTo(BeastBytes\CodPhp\Element\ObjectElement|string $destination): string|null
$destinationBeastBytes\CodPhp\Element\ObjectElement|stringThe FQCN or element to get the path to.
returnstring|nullRelative path to the element from this element or `null` if $element is this element.

Declared in BeastBytes\CodPhp\Element\ObjectElement


Generated by CodPhp