1 | <?php |
||
7 | class FetchProgressEvent extends Event |
||
8 | { |
||
9 | /** |
||
10 | * The number of bytes fetched so far. |
||
11 | * |
||
12 | * @var int |
||
13 | */ |
||
14 | protected $bytesFetched; |
||
15 | |||
16 | /** |
||
17 | * The number of bytes to fetch in total. |
||
18 | * |
||
19 | * @var int |
||
20 | */ |
||
21 | protected $bytesTotal; |
||
22 | |||
23 | /** |
||
24 | * @param int $fetched |
||
25 | * @param int $total |
||
26 | */ |
||
27 | 8 | public function __construct($fetched, $total) |
|
32 | |||
33 | /** |
||
34 | * Returns the total number of bytes fetched so far. |
||
35 | * |
||
36 | * @return int |
||
37 | */ |
||
38 | 4 | public function getBytesFetched() |
|
42 | |||
43 | /** |
||
44 | * Returns the total number of bytes to be fetched. |
||
45 | * |
||
46 | * @return int |
||
47 | */ |
||
48 | 4 | public function getBytesTotal() |
|
52 | } |
||
53 |