final class Introduce (View source)

Introduces the given interface or property into any target class matching the given pointcut expression.

Properties

string $pointcutExpression

The pointcut expression. (Can be given as anonymous argument.)

string|null $interfaceName

The interface name to introduce.

string|null $traitName

The trait name to introduce

Methods

__construct(string $pointcutExpression, string|null $interfaceName = null, string|null $traitName = null)

No description

Details

__construct(string $pointcutExpression, string|null $interfaceName = null, string|null $traitName = null)

No description

Parameters

string $pointcutExpression
string|null $interfaceName
string|null $traitName