| 1 | <?php |
||
| 21 | final class EncodingCompleteEvent extends Event |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * The ENCODING_COMPLETE event occurs when an encoding is done or failed. |
||
| 25 | * |
||
| 26 | * The event listener method receives a Xabbuh\PandaBundle\Event\EncodingCompleteEvent instance. |
||
| 27 | */ |
||
| 28 | const NAME = 'xabbuh_panda.encoding_complete'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The id of the encoded video |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private $videoId; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * The id of the encoding |
||
| 38 | * @var string |
||
| 39 | */ |
||
| 40 | private $encodingId; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Constructs a new EncodingCompleteEvent. |
||
| 44 | * |
||
| 45 | * @param string $videoId Video id |
||
| 46 | * @param string $encodingId Encoding id |
||
| 47 | */ |
||
| 48 | 4 | public function __construct($videoId, $encodingId) |
|
| 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 encoding id. |
||
| 66 | * |
||
| 67 | * @return string The encoding id |
||
| 68 | */ |
||
| 69 | 3 | public function getEncodingId() |
|
| 73 | } |
||
| 74 |