Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LazyProperty.php

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\Validator
View 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
RSS feed
Powered by Drupal