Properties

$name

$name : 

Type

$target

$target : 

Type

$params

$params : 

Type

$propagationStopped

$propagationStopped : 

Type

$input

$input : 

Type

$path

$path : 

Type

$method

$method : 

Type

$parameters

$parameters : 

Type

Methods

__construct()

__construct(string  $input, string|null  $path, string  $method, array  $parameters) 

CompileEvent constructor.

Parameters

string $input
string|null $path
string $method
array $parameters

getName()

getName() : string

Get event name.

Returns

string

getTarget()

getTarget() : null|string|object

Get target/context from which event was triggered.

Returns

null|string|object

getParams()

getParams() : array

Get parameters passed to the event.

Returns

array

getParam()

getParam(string  $name) : mixed

Get a single parameter by name.

Parameters

string $name

Returns

mixed

setName()

setName(string  $name) : void

Set the event name.

Parameters

string $name

setTarget()

setTarget(null|string|object  $target) : void

Set the event target.

Parameters

null|string|object $target

setParams()

setParams(array  $params) : void

Set event parameters.

Parameters

array $params

stopPropagation()

stopPropagation(boolean  $flag) 

Indicate whether or not to stop propagating this event.

Parameters

boolean $flag

isPropagationStopped()

isPropagationStopped() : boolean

Has this event indicated event propagation should stop?

Returns

boolean

getMethod()

getMethod() : string

Returns

string

setMethod()

setMethod(string  $method) 

Parameters

string $method

getInput()

getInput() : string

Returns

string

setInput()

setInput(string  $input) 

Parameters

string $input

getParameters()

getParameters() : array

Returns

array

setParameters()

setParameters(array  $parameters) 

Parameters

array $parameters

getPath()

getPath() : null|string

Returns

null|string

setPath()

setPath(null|string  $path) 

Parameters

null|string $path