final class InterfaceType extends ClassLike

Definition of an interface with properties, methods and constants.

Methods

setExtends(string|array $names)

No description

array
getExtends()

No description

addExtend(string $name)

No description

addMember(Property $member, bool $overwrite = false)

Adds a member. If it already exists, throws an exception or overwrites it if $overwrite is true.

void
validate()

No description

void
__clone()

No description

Details

at line 31
InterfaceType setExtends(string|array $names)

No description

Parameters

string|array $names

Return Value

InterfaceType

at line 41
array getExtends()

No description

Return Value

array

at line 47
InterfaceType addExtend(string $name)

No description

Parameters

string $name

Return Value

InterfaceType

at line 58
InterfaceType addMember(Property $member, bool $overwrite = false)

Adds a member. If it already exists, throws an exception or overwrites it if $overwrite is true.

Parameters

Property $member
bool $overwrite

Return Value

InterfaceType

at line 75
void validate()

No description

Return Value

void

Exceptions

InvalidStateException

at line 87
void __clone()

No description

Return Value

void

Traits