| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class IngestStatus |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | public $status; |
||
| 9 | /** @var int */ |
||
| 10 | public $fileSize; |
||
| 11 | /** @var array */ |
||
| 12 | public $receivedBytes; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * IngestStatus constructor. |
||
| 16 | * @param string $status |
||
| 17 | * @param int $fileSize |
||
| 18 | * @param array $receivedBytes |
||
| 19 | */ |
||
| 20 | public function __construct($status, $fileSize, array $receivedBytes) |
||
| 21 | { |
||
| 22 | $this->status = $status; |
||
| 23 | $this->fileSize = $fileSize; |
||
| 24 | $this->receivedBytes = $receivedBytes; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param array $data |
||
| 29 | * @return self |
||
| 30 | */ |
||
| 31 | public static function fromArray(array $data) |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | } |