Completed
Pull Request — master (#66)
by
unknown
01:53
created

Progress   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 33
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace TusPhp\Events;
4
5
use TusPhp\File;
6
7
class Progress
8
{
9
    /**
10
     * @var \TusPhp\File
11
     */
12
    public $file;
13
14
    /**
15
     * @var int
16
     */
17
    public $fileSize;
18
19
    /**
20
     * @var int
21
     */
22
    public $offset;
23
24
    /**
25
     * @var int
26
     */
27
    public $bytesWritten;
28
    
29
    /**
30
     * Create a new event instance.
31
     *
32
     * @return void
33
     */
34
    public function __construct(File $file, int $fileSize, int $offset, int $bytesWritten)
35
    {
36
        $this->file = $file;
37
        $this->fileSize = $fileSize;
38
        $this->offset = $offset;
39
        $this->bytesWritten = $bytesWritten;
40
    }
41
}
42