class TraitIntroduction (View source)

Implementation of the trait introduction declaration.

Properties

protected string $declaringAspectClassName

Name of the aspect declaring this introduction

protected string $traitName

Name of the introduced trait

protected Pointcut $pointcut

The pointcut this introduction applies to

Methods

__construct(string $declaringAspectClassName, string $traitName, Pointcut $pointcut)

Constructor

string
getTraitName()

Returns the name of the introduced trait

getPointcut()

Returns the pointcut this introduction applies to

string
getDeclaringAspectClassName()

Returns the object name of the aspect which declared this introduction

Details

__construct(string $declaringAspectClassName, string $traitName, Pointcut $pointcut)

Constructor

Parameters

string $declaringAspectClassName

Name of the aspect containing the declaration for this introduction

string $traitName

Name of the trait to introduce

Pointcut $pointcut

The pointcut for this introduction

string getTraitName()

Returns the name of the introduced trait

Return Value

string

Name of the introduced trait

Pointcut getPointcut()

Returns the pointcut this introduction applies to

Return Value

Pointcut

The pointcut

string getDeclaringAspectClassName()

Returns the object name of the aspect which declared this introduction

Return Value

string

The aspect object name