function LazyObjectRegistry::getClassAccessors
8 calls to LazyObjectRegistry::getClassAccessors()
- LazyGhostTrait::__get in vendor/
symfony/ var-exporter/ LazyGhostTrait.php - LazyGhostTrait::__isset in vendor/
symfony/ var-exporter/ LazyGhostTrait.php - LazyGhostTrait::__set in vendor/
symfony/ var-exporter/ LazyGhostTrait.php - LazyGhostTrait::__unset in vendor/
symfony/ var-exporter/ LazyGhostTrait.php - LazyProxyTrait::__get in vendor/
symfony/ var-exporter/ LazyProxyTrait.php
File
-
vendor/
symfony/ var-exporter/ Internal/ LazyObjectRegistry.php, line 82
Class
- LazyObjectRegistry
- Stores the state of lazy objects and caches related reflection information.
Namespace
Symfony\Component\VarExporter\InternalCode
public static function getClassAccessors($class) {
return \Closure::bind(static fn() => [
'get' => static function &($instance, $name, $readonly) {
if (!$readonly) {
return $instance->{$name};
}
$value = $instance->{$name};
return $value;
},
'set' => static function ($instance, $name, $value) {
$instance->{$name} = $value;
},
'isset' => static fn($instance, $name) => isset($instance->{$name}),
'unset' => static function ($instance, $name) {
unset($instance->{$name});
},
], null, \Closure::class === $class ? null : $class)();
}