1 | <?php |
||
21 | final class EncodingProgressEvent extends Event |
||
22 | { |
||
23 | /** |
||
24 | * The ENCODING_PROGRESS event occurs repeatedly while an encoding process is running. |
||
25 | * |
||
26 | * The event listener method receives a Xabbuh\PandaBundle\Event\EncodingProgressEvent instance. |
||
27 | */ |
||
28 | const NAME = 'xabbuh_panda.encoding_progress'; |
||
29 | |||
30 | /** |
||
31 | * The id of the encoded video |
||
32 | * @var string |
||
33 | */ |
||
34 | private $videoId; |
||
35 | |||
36 | /** |
||
37 | * The id of the encoding |
||
38 | * @var string |
||
39 | */ |
||
40 | private $encodingId; |
||
41 | |||
42 | /** |
||
43 | * The encoding progress |
||
44 | * @var int |
||
45 | */ |
||
46 | private $progress; |
||
47 | |||
48 | /** |
||
49 | * Constructs a new EncodingProgressEvent. |
||
50 | * |
||
51 | * @param string $videoId Video id |
||
52 | * @param string $encodingId Encoding id |
||
53 | * @param int $progress Progress of the encoding |
||
54 | */ |
||
55 | 4 | public function __construct($videoId, $encodingId, $progress) |
|
61 | |||
62 | /** |
||
63 | * Returns the video id. |
||
64 | * |
||
65 | * @return string The video id |
||
66 | */ |
||
67 | 3 | public function getVideoId() |
|
71 | |||
72 | /** |
||
73 | * Returns the encoding id. |
||
74 | * |
||
75 | * @return string The encoding id |
||
76 | */ |
||
77 | 3 | public function getEncodingId() |
|
81 | |||
82 | /** |
||
83 | * Returns the encoding progress. |
||
84 | * |
||
85 | * @return int The progress |
||
86 | */ |
||
87 | 3 | public function getProgress() |
|
91 | } |
||
92 |