Skip to content

final class MethodElement

Source Code

Represents a Method structural element.

NamespaceBeastBytes\CodPhp\Element
Inheritance

BeastBytes\CodPhp\Element\MethodElement
BeastBytes\CodPhp\Element\Element

Uses

BeastBytes\CodPhp\Element\DeclaringClassTrait
BeastBytes\CodPhp\Element\ModifierTrait
BeastBytes\CodPhp\Element\ThrowsTrait

Properties

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

TypeRead/WriteDefault
string|nullRead

Declared in BeastBytes\CodPhp\Element\Element


$declaringClass

Declaring class of the element.

TypeRead/WriteDefault
BeastBytes\CodPhp\Element\ClassElementRead

Declared in BeastBytes\CodPhp\Element\MethodElement


$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


$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


$hasParameters

true if the method has parameters, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\MethodElement


$hasReturnType

true if the method has a return type, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\MethodElement


$hasSummary

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

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\Element


$isConstructor

true if the method is a contructor, false if not

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\MethodElement


$isDestructor

true if the method is a destructor, false if not

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\MethodElement


$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


$modifiers

Element modifiers

TypeRead/WriteDefault
arrayRead

Declared in BeastBytes\CodPhp\Element\MethodElement


$name

Name of the element.

TypeRead/WriteDefault
stringRead

Declared in BeastBytes\CodPhp\Element\Element


$namespace

Namespace of the element.

TypeRead/WriteDefault
string|nullRead

Declared in BeastBytes\CodPhp\Element\Element


$parameters

Method parameters indexed by name.

TypeRead/WriteDefault
arrayRead[]

Declared in BeastBytes\CodPhp\Element\MethodElement


$returnType

Method return type or null if the method does not have a return type.

TypeRead/WriteDefault
ReflectionType|nullRead

Declared in BeastBytes\CodPhp\Element\MethodElement


$returnValueDescription

Method return value description.

TypeRead/WriteDefault
stringRead

Declared in BeastBytes\CodPhp\Element\MethodElement


$returnsReference

true if the method returns a reference, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\MethodElement


$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


$summary

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

TypeRead/WriteDefault
string|nullRead

Declared in BeastBytes\CodPhp\Element\Element


$throwsException

true if the element throws an exception, false if not.

TypeRead/WriteDefault
boolRead

Declared in BeastBytes\CodPhp\Element\MethodElement


$throwsTags

Array of Throws tags.

TypeRead/WriteDefault
arrayRead

Declared in BeastBytes\CodPhp\Element\MethodElement


$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


Generated by CodPhp