final class QueryEvent implements AppEvent (View source)

Traits

Properties

mixed $sql

The query data

array $bindings

The query bindings

Methods

static mixed
dispatch()

Dispatch the event with the given arguments.

static void
dispatchIf(bool $boolean, mixed ...$arguments)

Dispatch the event with the given arguments if the given truth test passes.

static void
dispatchUnless(bool $boolean, mixed ...$arguments)

Dispatch the event with the given arguments unless the given truth test passes.

array
__serialize()

Prepare the instance values for serialization.

mixed
getPropertyValue(ReflectionProperty $property)

Get the property value for the given property.

void
__unserialize(array $values)

Restore the model after serialization.

__construct(string $sql, array $bindings = [])

QueryEvent constructor.

string
getName()

No description

__set(string $name, mixed $value)

Prevent setting properties dynamically

Details

static mixed dispatch()

Dispatch the event with the given arguments.

Return Value

mixed

static void dispatchIf(bool $boolean, mixed ...$arguments)

Dispatch the event with the given arguments if the given truth test passes.

Parameters

bool $boolean
mixed ...$arguments

Return Value

void

static void dispatchUnless(bool $boolean, mixed ...$arguments)

Dispatch the event with the given arguments unless the given truth test passes.

Parameters

bool $boolean
mixed ...$arguments

Return Value

void

array __serialize()

Prepare the instance values for serialization.

Return Value

array

protected mixed getPropertyValue(ReflectionProperty $property)

Get the property value for the given property.

Parameters

ReflectionProperty $property

Return Value

mixed

void __unserialize(array $values)

Restore the model after serialization.

Parameters

array $values

Return Value

void

__construct(string $sql, array $bindings = [])

QueryEvent constructor.

Parameters

string $sql
array $bindings

string getName()

No description

Return Value

string

__set(string $name, mixed $value)

Prevent setting properties dynamically

Parameters

string $name
mixed $value

Exceptions

Exception