1 | <?php |
||
18 | class JsonValidator extends Validator |
||
19 | { |
||
20 | /** |
||
21 | * @var string user-defined error message which is used when the validation fails. |
||
22 | * |
||
23 | * You may use the following placeholders in the message: |
||
24 | * |
||
25 | * - `{attribute}`: the label of the attribute being validated |
||
26 | * - `{value}`: the value of the attribute being validated |
||
27 | */ |
||
28 | public $message; |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | 22 | public function init() |
|
41 | |||
42 | /** |
||
43 | * @inheritdoc |
||
44 | */ |
||
45 | 22 | protected function validateValue($value) |
|
56 | } |
||
57 |