| Total Complexity | 1 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 23 | class JsonData extends Constraint |
||
| 24 | { |
||
| 25 | public const VALUE_TYPE = '(template value type)'; |
||
| 26 | |||
| 27 | public const MESSAGE = 'The value {{ string }} is not a valid JSON. Got the following error {{ error }} ' . |
||
| 28 | self::VALUE_TYPE; |
||
| 29 | |||
| 30 | public $payload = self::MESSAGE; |
||
| 31 | |||
| 32 | |||
| 33 | /** |
||
| 34 | * Returns whether the constraint can be put onto classes, properties or |
||
| 35 | * both. |
||
| 36 | * |
||
| 37 | * This method should return one or more of the constants |
||
| 38 | * self::CLASS_CONSTRAINT and self::PROPERTY_CONSTRAINT. |
||
| 39 | * |
||
| 40 | * @return string One or more constant values |
||
| 41 | */ |
||
| 42 | public function getTargets(): string |
||
| 45 | } |
||
| 46 | } |