BlackHoleMetadataFactory.php
4 years ago
LazyLoadingMetadataFactory.php
1 year ago
MetadataFactoryInterface.php
4 years ago
index.php
3 years ago
BlackHoleMetadataFactory.php
16 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Symfony\Component\Validator\Mapping\Factory; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | use MailPoetVendor\Symfony\Component\Validator\Exception\LogicException; |
| 5 | class BlackHoleMetadataFactory implements MetadataFactoryInterface |
| 6 | { |
| 7 | public function getMetadataFor($value) |
| 8 | { |
| 9 | throw new LogicException('This class does not support metadata.'); |
| 10 | } |
| 11 | public function hasMetadataFor($value) |
| 12 | { |
| 13 | return \false; |
| 14 | } |
| 15 | } |
| 16 |