Statement
class Statement (View source)
The GenericDatabase\Generic\Statements\Statement class is a class that represents a statement.
Method:
bind(array $params): object:This method binds parameters to a statement
Traits
This trait provides magic methods for dynamic property access and manipulation, including getter, setter, isset, and unset operations. Supports serialization
and deserialization through __sleep and __wakeup methods. Converts object properties to an associative array with the toArray method.
Properties
| mixed|null | $statement | ||
| mixed|null | $query | ||
| mixed|null | $by | ||
| mixed|null | $is |
Methods
Magic setter method to dynamically set properties.
This method is triggered by calling isset() or empty() on inaccessible (protected or private) or non-existing properties.
This method is invoked when unset() is used on inaccessible (protected or private) or non-existing properties.
Details
mixed
__get(string $name)
Magic getter method
void
__set(string $name, mixed $value)
Magic setter method to dynamically set properties.
If the property is an array and already exists as an instance of the current class, it will recursively set each key-value pair on the existing instance. Otherwise, it assigns the value directly to the property.
bool
__isset(string $name)
This method is triggered by calling isset() or empty() on inaccessible (protected or private) or non-existing properties.
void
__unset(string $name)
This method is invoked when unset() is used on inaccessible (protected or private) or non-existing properties.
array
__sleep()
Sleep instance used by serialize/unserialize
void
__wakeup()
Wakeup instance used by serialize/unserialize
array
toArray()
Returns the object properties as an associative array
static Statement
bind(array $params)
This method binds parameters to a statement