| 1 | <?php |
||
| 23 | class VideoCreatedEvent extends Event |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * The VIDEO_CREATED event occurs when a video was successfully created. |
||
| 27 | * |
||
| 28 | * The event listener method receives a Xabbuh\PandaBundle\Event\VideoCreatedEvent instance. |
||
| 29 | */ |
||
| 30 | const NAME = 'xabbuh_panda.video_created'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * The id of the 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 VideoCreatedEvent. |
||
| 46 | * |
||
| 47 | * @param string $videoId Video id |
||
| 48 | * @param string[] $encodingIds Ids of the video's encodings |
||
| 49 | */ |
||
| 50 | public function __construct($videoId, array $encodingIds) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Returns the video id. |
||
| 58 | * |
||
| 59 | * @return string The video id |
||
| 60 | */ |
||
| 61 | public function getVideoId() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Returns the video's encoding ids. |
||
| 68 | * |
||
| 69 | * @return string[] The encoding ids |
||
| 70 | */ |
||
| 71 | public function getEncodingIds() |
||
| 75 | } |
||
| 76 |