| 1 | <?php |
||
| 12 | class AutomaticWriteOff implements CreatableFromArray |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $setting; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $amount; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function getSetting() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $setting |
||
| 34 | * |
||
| 35 | * @return AutomaticWriteOff |
||
| 36 | */ |
||
| 37 | public function withSetting(string $setting) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return int |
||
| 47 | */ |
||
| 48 | public function getAmount() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param int $amount |
||
| 55 | * |
||
| 56 | * @return AutomaticWriteOff |
||
| 57 | */ |
||
| 58 | public function withAmount(int $amount) |
||
| 65 | |||
| 66 | 1 | public function toArray() |
|
| 76 | |||
| 77 | /** |
||
| 78 | * Create an API response object from the HTTP response from the API server. |
||
| 79 | * |
||
| 80 | * @param array $data |
||
| 81 | * |
||
| 82 | * @return self |
||
| 83 | */ |
||
| 84 | 2 | public static function createFromArray(array $data) |
|
| 92 | } |
||
| 93 |