1: <?php declare( strict_types = 1 );
2:
3: namespace Waves\Model;
4:
5: use Waves\Common\JsonBase;
6:
7: class TransactionStatus extends JsonBase
8: {
9: function id(): Id { return $this->json->get( 'id' )->asId(); }
10: function status(): int { return $this->json->get( 'status' )->asStatus(); }
11: function applicationStatus(): int { return $this->json->get( 'applicationStatus' )->asApplicationStatus(); }
12: function height(): int { return $this->json->getOr( 'height', 0 )->asInt(); }
13: function confirmations(): int { return $this->json->getOr( 'confirmations', 0 )->asInt(); }
14: }
15: