| Total Complexity | 3 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class FormByteRangeUpload extends FormUpload |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | private $from; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | private $to; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | private $length; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * |
||
| 31 | * @param string $file |
||
| 32 | * @param int $from |
||
| 33 | * @param int $to |
||
| 34 | * @param int $length |
||
| 35 | * @param string $contentType |
||
| 36 | */ |
||
| 37 | public function __construct($file, $from, $to, $length = null, $contentType = null) |
||
| 38 | { |
||
| 39 | parent::__construct($file, $contentType); |
||
| 40 | |||
| 41 | $this->from = $from; |
||
| 42 | $this->to = $to; |
||
| 43 | $this->length = $length; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * |
||
| 48 | * @return array |
||
| 49 | * @throws Exception |
||
| 50 | */ |
||
| 51 | public function getHeaders() |
||
| 67 | } |
||
| 68 | } |
||
| 69 |