Methods |
public
static
|
createLazyGhost(
Closure $initializer,
array<string, true>|null $skippedProperties = null,
static|null $instance = null,
): static
Creates a lazy-loading ghost instance.
Parameters
$skippedProperties |
An array indexed by the properties to skip, a.k.a. the ones
that the initializer doesn't initialize, if any
|
|
#
|
public
|
isLazyObjectInitialized(bool $partial = false): bool
Returns whether the object is initialized.
Returns whether the object is initialized.
|
#
|
public
|
initializeLazyObject(): static
Forces initialization of a lazy object and returns it.
Forces initialization of a lazy object and returns it.
|
#
|
public
|
resetLazyObject(): bool
Returns
Returns false when the object cannot be reset, ie when it's not a lazy object
|
#
|
public
&
|
__get($name): mixed
|
#
|
public
|
__set($name, $value): void
|
#
|
public
|
__isset($name): bool
|
#
|
public
|
__unset($name): void
|
#
|
public
|
__clone(): void
|
#
|
public
|
__serialize(): array
|
#
|
public
|
__destruct()
|
#
|