94 lines
2.5 KiB
YAML
94 lines
2.5 KiB
YAML
|
name: LazyProxyTrait
|
||
|
class_comment: null
|
||
|
dependencies:
|
||
|
- name: Ignore
|
||
|
type: class
|
||
|
source: Symfony\Component\Serializer\Attribute\Ignore
|
||
|
- name: PublicHydrator
|
||
|
type: class
|
||
|
source: Symfony\Component\VarExporter\Hydrator
|
||
|
- name: Hydrator
|
||
|
type: class
|
||
|
source: Symfony\Component\VarExporter\Internal\Hydrator
|
||
|
- name: Registry
|
||
|
type: class
|
||
|
source: Symfony\Component\VarExporter\Internal\LazyObjectRegistry
|
||
|
- name: LazyObjectState
|
||
|
type: class
|
||
|
source: Symfony\Component\VarExporter\Internal\LazyObjectState
|
||
|
- name: LazyObjectTrait
|
||
|
type: class
|
||
|
source: Symfony\Component\VarExporter\Internal\LazyObjectTrait
|
||
|
- name: LazyObjectTrait
|
||
|
type: class
|
||
|
source: LazyObjectTrait
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: createLazyProxy
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: initializer
|
||
|
- name: instance
|
||
|
default: 'null'
|
||
|
comment: '# * Creates a lazy-loading virtual proxy.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param \Closure():object $initializer Returns the proxied object
|
||
|
|
||
|
# * @param static|null $instance'
|
||
|
- name: initializeLazyObject
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: "# * Returns whether the object is initialized.\n# *\n# * @param $partial\
|
||
|
\ Whether partially initialized objects should be considered as initialized\n\
|
||
|
# */\n# #[Ignore]\n# public function isLazyObjectInitialized(bool $partial = false):\
|
||
|
\ bool\n# {\n# return !isset($this->lazyObjectState) || isset($this->lazyObjectState->realInstance)\
|
||
|
\ || Registry::$noInitializerState === $this->lazyObjectState->initializer;\n\
|
||
|
# }\n# \n# /**\n# * Forces initialization of a lazy object and returns it."
|
||
|
- name: resetLazyObject
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * @return bool Returns false when the object cannot be reset, ie when
|
||
|
it''s not a lazy object'
|
||
|
- name: __set
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: name
|
||
|
- name: value
|
||
|
comment: null
|
||
|
- name: __isset
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: name
|
||
|
comment: null
|
||
|
- name: __unset
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: name
|
||
|
comment: null
|
||
|
- name: __clone
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
- name: __serialize
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
- name: __unserialize
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: data
|
||
|
comment: null
|
||
|
- name: __destruct
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
traits:
|
||
|
- Symfony\Component\Serializer\Attribute\Ignore
|
||
|
- Symfony\Component\VarExporter\Internal\Hydrator
|
||
|
- Symfony\Component\VarExporter\Internal\LazyObjectState
|
||
|
- Symfony\Component\VarExporter\Internal\LazyObjectTrait
|
||
|
- LazyObjectTrait
|
||
|
interfaces: []
|