PluginProbe
Remote Website Management by Watchful / trunk
Remote Website Management by Watchful vtrunk
v2.0.17 v2.0.16 v2.0.15 v2.0.14 v2.0.13 v2.0.12 v2.0.11 trunk v1.2.11 v1.2.12 v1.2.13 v1.2.14 v1.2.17 v1.2.19 v1.2.20 v1.2.9 v1.3.0 v1.3.1 v1.3.2 v1.4.1 v1.4.10 v1.4.11 v1.4.12 v1.4.2 v1.4.3 All 72 releases
watchful / lib / Model / UploadPart.php

UploadPart.php in Remote Website Management by Watchful trunk, at lib/Model/UploadPart.php

31 lines 604 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Watchful\Model;
4
5 use JsonSerializable;
6
7 class UploadPart implements JsonSerializable
8 {
9 /** @var string */
10 public $part_number;
11
12 /** @var string */
13 public $e_tag;
14
15 public static function fromArray(array $data): self
16 {
17 $instance = new self();
18 $instance->part_number = $data['part_number'] ?? '';
19 $instance->e_tag = $data['e_tag'] ?? '';
20
21 return $instance;
22 }
23
24 public function jsonSerialize(): array
25 {
26 return [
27 'part_number' => $this->part_number,
28 'e_tag' => $this->e_tag,
29 ];
30 }
31 }