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
$attributes
private
array<string|int, Attribute>
$attributes
= []
$constants
private
array<string|int, Constant>
$constants
= []
$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
$location read-only
private
Location
$location
$methods
private
array<string|int, Method>
$methods
= []
$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
addAttribute()
public
addAttribute(Attribute $attribute) : void
Parameters
- $attribute : Attribute
addConstant()
Add constant to this interface.
public
addConstant(Constant $constant) : void
Parameters
- $constant : Constant
addMethod()
Add method to this interface.
public
addMethod(Method $method) : void
Parameters
- $method : Method
getAttributes()
public
getAttributes() : array<string|int, Attribute>
Return values
array<string|int, Attribute>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|nullgetEndLocation()
public
getEndLocation() : Location
Return values
LocationgetFqsen()
Returns the Fqsen of the element.
public
getFqsen() : Fqsen
Attributes
- #[Override]
Return values
FqsengetLocation()
public
getLocation() : Location
Return values
LocationgetMethods()
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
stringgetParents()
Returns the Fqsen of the interfaces this interface is extending.
public
getParents() : array<string|int, Fqsen>