class LazyProperty
A wrapper for a callable initializing a property from a getter.
@internal
Hierarchy
- class \Symfony\Component\Validator\Validator\LazyProperty
Expanded class hierarchy of LazyProperty
1 file declares its use of LazyProperty
- ExecutionContext.php in vendor/
symfony/ validator/ Context/ ExecutionContext.php
File
-
vendor/
symfony/ validator/ Validator/ LazyProperty.php, line 19
Namespace
Symfony\Component\Validator\ValidatorView source
class LazyProperty {
public function __construct(\Closure $propertyValueCallback) {
}
public function getPropertyValue() : mixed {
return ($this->propertyValueCallback)();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
LazyProperty::getPropertyValue | public | function | |
LazyProperty::__construct | public | function |