Skip to content

final class InterfaceElement ​

Source Code

Represents an Interface structural element.

NamespaceBeastBytes\CodPhp\Element
Inheritance

BeastBytes\CodPhp\Element\InterfaceElement
BeastBytes\CodPhp\Element\ObjectElement
BeastBytes\CodPhp\Element\Element

Uses

BeastBytes\CodPhp\Element\PropertyTrait

Properties ​

$ancestors ​

Ancestors of the element indexed by FQCN.

TypeRead/WriteDefault
arrayRead[]

Declared in BeastBytes\CodPhp\Element\ObjectElement


$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


$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


$hasProperties ​

true if the element's object has has properties, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\InterfaceElement


$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


$implementedBy ​

Object elements that implement the Iterface of this element.

TypeRead/WriteDefault
arrayRead[]

Declared in BeastBytes\CodPhp\Element\InterfaceElement


$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


$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


$properties ​

Properties of the element indexed by FQCN.

TypeRead/WriteDefault
arrayRead[]

Declared in BeastBytes\CodPhp\Element\InterfaceElement


$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


getTag() ​

Returns the content of the specifies tag or null if the element does not have the specified tag.

public function getTag(string $name): string|null
$namestringName of the tag.
returnstring|nullContent of the specifies tag or `null` if the element does not have the specified tag.

Declared in BeastBytes\CodPhp\Element\Element


hasTag() ​

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

public function hasTag(string $name): bool
$namestringName of the tag.
returnbool`true` if the element has the specified tag, `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