1: <?php declare( strict_types = 1 );
2:
3: namespace Waves\Model;
4:
5: use Waves\Common\Base64String;
6: use Waves\Common\JsonBase;
7:
8: class ScriptDetails extends JsonBase
9: {
10: const EMPTY = [ 'script' => '', 'scriptComplexity' => 0 ];
11:
12: function script(): Base64String { return $this->json->get( 'script' )->asBase64String(); }
13: function complexity(): int { return $this->json->get( 'scriptComplexity' )->asInt(); }
14: }
15: