final class ClassManipulator

Methods

__construct(ClassType $class)

No description

inheritProperty(string $name, bool $returnIfExists = false)

Inherits property from parent class.

inheritMethod(string $name, bool $returnIfExists = false)

Inherits method from parent class or interface.

void
implement(string $name)

Implements all methods from the given interface or abstract class.

void
implementInterface(string $interfaceName) deprecated

No description

Details

at line 17
__construct(ClassType $class)

No description

Parameters

ClassType $class

at line 26
Property inheritProperty(string $name, bool $returnIfExists = false)

Inherits property from parent class.

Parameters

string $name
bool $returnIfExists

Return Value

Property

at line 53
Method inheritMethod(string $name, bool $returnIfExists = false)

Inherits method from parent class or interface.

Parameters

string $name
bool $returnIfExists

Return Value

Method

at line 80
void implement(string $name)

Implements all methods from the given interface or abstract class.

Parameters

string $name

Return Value

void

at line 126
void implementInterface(string $interfaceName) deprecated

deprecated use implement()

No description

Parameters

string $interfaceName

Return Value

void