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