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