|
@@ -79,8 +79,8 @@ discard block |
|
|
block discarded – undo |
|
79
|
79
|
$deserialized = $classSerializerFacade->fromJsonTransfer($jsonDto); |
|
80
|
80
|
|
|
81
|
81
|
$className = get_class($user); |
|
82
|
|
-$okNo = get_class($deserialized) === $className ?'true' : 'false'; |
|
83
|
|
-print_r( "Deserialize $className: $okNo \r\n"); |
|
|
82
|
+$okNo = get_class($deserialized) === $className ? 'true' : 'false'; |
|
|
83
|
+print_r("Deserialize $className: $okNo \r\n"); |
|
84
|
84
|
|
|
85
|
85
|
/** |
|
86
|
86
|
* Validate DTO example |
|
@@ -117,7 +117,7 @@ discard block |
|
|
block discarded – undo |
|
117
|
117
|
$validator = new ValidatorFacadeDefault(); |
|
118
|
118
|
$constraints = $validator->validate($simpleUser); |
|
119
|
119
|
|
|
120
|
|
-$validationStatus = !count($constraints) ? 'Validated': 'Validation error'; |
|
|
120
|
+$validationStatus = !count($constraints) ? 'Validated' : 'Validation error'; |
|
121
|
121
|
|
|
122
|
122
|
print_r("Validation status: $validationStatus\r\n"); |
|
123
|
123
|
|
Please login to merge, or discard this patch.