1 | <?php |
||
23 | class EncodingCompleteEvent extends Event |
||
24 | { |
||
25 | /** |
||
26 | * The ENCODING_COMPLETE event occurs when an encoding is done or failed. |
||
27 | * |
||
28 | * The event listener method receives a Xabbuh\PandaBundle\Event\EncodingCompleteEvent instance. |
||
29 | */ |
||
30 | const NAME = 'xabbuh_panda.encoding_complete'; |
||
31 | |||
32 | /** |
||
33 | * The id of the encoded video |
||
34 | * @var string |
||
35 | */ |
||
36 | private $videoId; |
||
37 | |||
38 | /** |
||
39 | * The id of the encoding |
||
40 | * @var string |
||
41 | */ |
||
42 | private $encodingId; |
||
43 | |||
44 | /** |
||
45 | * Constructs a new EncodingCompleteEvent. |
||
46 | * |
||
47 | * @param string $videoId Video id |
||
48 | * @param string $encodingId Encoding id |
||
49 | */ |
||
50 | 4 | public function __construct($videoId, $encodingId) |
|
55 | |||
56 | /** |
||
57 | * Returns the video id. |
||
58 | * |
||
59 | * @return string The video id |
||
60 | */ |
||
61 | 3 | public function getVideoId() |
|
65 | |||
66 | /** |
||
67 | * Returns the encoding id. |
||
68 | * |
||
69 | * @return string The encoding id |
||
70 | */ |
||
71 | 3 | public function getEncodingId() |
|
75 | } |
||
76 |