| Total Complexity | 7 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | final class Refund |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Amount|null |
||
| 12 | * @SerializedName("Amount") |
||
| 13 | * @Type("Ticketpark\SaferpayJson\Request\Container\Amount") |
||
| 14 | */ |
||
| 15 | private $amount; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string|null |
||
| 19 | * @SerializedName("OrderId") |
||
| 20 | */ |
||
| 21 | private $orderId; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string|null |
||
| 25 | * @SerializedName("Description") |
||
| 26 | */ |
||
| 27 | private $description; |
||
| 28 | |||
| 29 | public function __construct(?Amount $amount) |
||
| 30 | { |
||
| 31 | $this->amount = $amount; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getAmount(): ?Amount |
||
| 35 | { |
||
| 36 | return $this->amount; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function setAmount(?Amount $amount): self |
||
| 40 | { |
||
| 41 | $this->amount = $amount; |
||
| 42 | |||
| 43 | return $this; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getOrderId(): ?string |
||
| 47 | { |
||
| 48 | return $this->orderId; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function setOrderId(?string $orderId): self |
||
| 52 | { |
||
| 53 | $this->orderId = $orderId; |
||
| 54 | |||
| 55 | return $this; |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getDescription(): ?string |
||
| 59 | { |
||
| 60 | return $this->description; |
||
| 61 | } |
||
| 62 | |||
| 63 | public function setDescription(?string $description): self |
||
| 68 | } |
||
| 69 | } |
||
| 70 |