ContextualValidatorInterface.php
4 years ago
LazyProperty.php
4 years ago
RecursiveContextualValidator.php
6 months ago
RecursiveValidator.php
4 years ago
TraceableValidator.php
4 years ago
ValidatorInterface.php
4 years ago
index.php
3 years ago
LazyProperty.php
16 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Symfony\Component\Validator\Validator; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | class LazyProperty |
| 5 | { |
| 6 | private $propertyValueCallback; |
| 7 | public function __construct(\Closure $propertyValueCallback) |
| 8 | { |
| 9 | $this->propertyValueCallback = $propertyValueCallback; |
| 10 | } |
| 11 | public function getPropertyValue() |
| 12 | { |
| 13 | return ($this->propertyValueCallback)(); |
| 14 | } |
| 15 | } |
| 16 |