1: <?php declare( strict_types = 1 );
2:
3: namespace Waves\Model;
4:
5: use Waves\Common\JsonBase;
6:
7: class Validation extends JsonBase
8: {
9: function isValid(): bool { return $this->json->get( 'valid' )->asBoolean(); }
10: function validationTime(): int { return $this->json->get( 'validationTime' )->asInt(); }
11: function error(): string { return $this->json->get( 'error' )->asString(); }
12: }
13: