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