JsonType
Requires the property’s value to be a syntactically valid JSON string.
Backed by Quiote\Validator\JsonValidator.
Synopsis
Section titled “Synopsis”final class JsonType
| Since | 1.0.0 |
| Source | Request/Attribute/Constraint/JsonType.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$message | ?``string | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(?string $message = null): mixed
| Parameter | Type | Description |
|---|---|---|
$message | ?``string |
Returns mixed