Properties

$name

$name : 

Type

$target

$target : 

Type

$params

$params : 

Type

$propagationStopped

$propagationStopped : 

Type

$renderEvent

$renderEvent : 

Type

$result

$result : 

Type

$buffer

$buffer : 

Type

$error

$error : 

Type

Methods

__construct()

__construct(\Phug\Renderer\Event\RenderEvent  $renderEvent, mixed  $result, string  $buffer, \Throwable  $error) 

CompileEvent constructor.

Parameters

\Phug\Renderer\Event\RenderEvent $renderEvent
mixed $result
string $buffer
\Throwable $error

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

getBuffer()

getBuffer() : string

Returns

string

setBuffer()

setBuffer(string  $buffer) 

Parameters

string $buffer

getError()

getError() : \Throwable

Returns

\Throwable

setError()

setError(\Throwable  $error) 

Parameters

\Throwable $error

getResult()

getResult() : mixed

Returns

mixed

setResult()

setResult(mixed  $result) 

Parameters

mixed $result