Guides

Interface_
in package
implements Element, MetaDataContainer, AttributeContainer uses MetadataContainer, HasAttributes

FinalYes

Descriptor representing an Interface.

Table of Contents

Interfaces

Element
MetaDataContainer
AttributeContainer

Properties

$attributes  : array<string|int, Attribute>
$constants  : array<string|int, Constant>
$docBlock  : DocBlock|null
$endLocation  : Location
$fqsen  : Fqsen
$location  : Location
$methods  : array<string|int, Method>
$parents  : array<string|int, mixed>

Methods

__construct()  : mixed
Initializes the object.
addAttribute()  : void
addConstant()  : void
Add constant to this interface.
addMethod()  : void
Add method to this interface.
getAttributes()  : array<string|int, Attribute>
getConstants()  : array<string|int, Constant>
Returns the constants of this interface.
getDocBlock()  : DocBlock|null
Returns the DocBlock of this interface if available.
getEndLocation()  : Location
getFqsen()  : Fqsen
Returns the Fqsen of the element.
getLocation()  : Location
getMethods()  : array<string|int, Method>
Returns the methods in this interface.
getName()  : string
Returns the name of the element.
getParents()  : array<string|int, Fqsen>
Returns the Fqsen of the interfaces this interface is extending.

Properties

$docBlock read-only

private DocBlock|null $docBlock = null

$endLocation read-only

private Location $endLocation

$fqsen read-only

private Fqsen $fqsen

Full Qualified Structural Element Name

$parents

private array<string|int, mixed> $parents = []

Methods

__construct()

Initializes the object.

public __construct(Fqsen $fqsen[, array<string|int, Fqsen$parents = [] ][, DocBlock|null $docBlock = null ][, Location|null $location = null ][, Location|null $endLocation = null ]) : mixed
Parameters
$fqsen : Fqsen
$parents : array<string|int, Fqsen> = []
$docBlock : DocBlock|null = null
$location : Location|null = null
$endLocation : Location|null = null

addMethod()

Add method to this interface.

public addMethod(Method $method) : void
Parameters
$method : Method

getConstants()

Returns the constants of this interface.

public getConstants() : array<string|int, Constant>
Return values
array<string|int, Constant>

getDocBlock()

Returns the DocBlock of this interface if available.

public getDocBlock() : DocBlock|null
Return values
DocBlock|null

getEndLocation()

public getEndLocation() : Location
Return values
Location

getFqsen()

Returns the Fqsen of the element.

public getFqsen() : Fqsen
Attributes
#[Override]
Return values
Fqsen

getLocation()

public getLocation() : Location
Return values
Location

getMethods()

Returns the methods in this interface.

public getMethods() : array<string|int, Method>
Return values
array<string|int, Method>

getName()

Returns the name of the element.

public getName() : string
Attributes
#[Override]
Return values
string

getParents()

Returns the Fqsen of the interfaces this interface is extending.

public getParents() : array<string|int, Fqsen>
Return values
array<string|int, Fqsen>

        
On this page

Search results