1 | <?php |
||
23 | class VideoEncodedEvent extends Event |
||
24 | { |
||
25 | /** |
||
26 | * The VIDEO_ENCODED event occurs when a video was successfully encoded. |
||
27 | * |
||
28 | * The event listener method receives a Xabbuh\PandaBundle\Event\VideoCreatedEvent instance. |
||
29 | */ |
||
30 | const NAME = 'xabbuh_panda.video_encoded'; |
||
31 | |||
32 | /** |
||
33 | * The id of the encoded video |
||
34 | * @var string |
||
35 | */ |
||
36 | private $videoId; |
||
37 | |||
38 | /** |
||
39 | * List of encoding ids of this video |
||
40 | * @var string[] |
||
41 | */ |
||
42 | private $encodingIds = array(); |
||
43 | |||
44 | /** |
||
45 | * Constructs a new VideoEncodedEvent. |
||
46 | * |
||
47 | * @param string $videoId Video id |
||
48 | * @param string[] $encodingIds Ids of the video's encodings |
||
49 | */ |
||
50 | 4 | public function __construct($videoId, array $encodingIds) |
|
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 video's encoding ids. |
||
68 | * |
||
69 | * @return string[] The encoding ids |
||
70 | */ |
||
71 | 3 | public function getEncodingIds() |
|
75 | } |
||
76 |