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

Progress::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 4
dl 0
loc 6
rs 10
c 0
b 0
f 0
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