PreTransformEvent
extends EventAbstract
in package
FinalYes
Event that happens prior to the execution of all transformations.
Table of Contents
Properties
- $subject : object
- $project : ProjectDescriptor|null
- $transformations : array<string|int, Transformation>
Methods
- __construct() : mixed
- Initializes this event with the given subject.
- createInstance() : EventAbstract
- Creates a new instance of a derived object and return that.
- getProject() : ProjectDescriptor|null
- Returns the descriptor describing the project.
- getSubject() : object
- Returns the object that is the subject of this event.
- getTransformations() : array<string|int, Transformation>
- setProject() : $this
- Returns the descriptor describing the project.
- setTransformations() : void
Properties
$subject
protected
object
$subject
Represents an object that is the subject of this event
$project
private
ProjectDescriptor|null
$project
= null
$transformations
private
array<string|int, Transformation>
$transformations
= []
Methods
__construct()
Initializes this event with the given subject.
public
__construct(object $subject) : mixed
Parameters
- $subject : object
createInstance()
Creates a new instance of a derived object and return that.
public
static createInstance(object $subject) : EventAbstract
Used as convenience method for fluent interfaces.
Parameters
- $subject : object
Return values
EventAbstractgetProject()
Returns the descriptor describing the project.
public
getProject() : ProjectDescriptor|null
Return values
ProjectDescriptor|nullgetSubject()
Returns the object that is the subject of this event.
public
getSubject() : object
Return values
objectgetTransformations()
public
getTransformations() : array<string|int, Transformation>
Return values
array<string|int, Transformation>setProject()
Returns the descriptor describing the project.
public
setProject(ProjectDescriptor $project) : $this
Parameters
- $project : ProjectDescriptor
Return values
$thissetTransformations()
public
setTransformations(array<string|int, Transformation> $transformations) : void
Parameters
- $transformations : array<string|int, Transformation>