Returns whether the object is initialized.
bool $partial Whether partially initialized objects should be considered as initialized:
public function isLazyObjectInitialized(bool $partial = false) : bool { if (!($state = $this->lazyObjectState ?? null)) { return true; } return LazyObjectState::STATUS_INITIALIZED_FULL === $state->status; }