for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the XabbuhPandaBundle package.
*
* (c) Christian Flothmann <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Xabbuh\PandaBundle\Event;
use Symfony\Contracts\EventDispatcher\Event;
/**
* Event that is triggered when a video was successfully created.
* @author Christian Flothmann <[email protected]>
* @final
class VideoCreatedEvent extends Event
{
* The VIDEO_CREATED event occurs when a video was successfully created.
* The event listener method receives a Xabbuh\PandaBundle\Event\VideoCreatedEvent instance.
const NAME = 'xabbuh_panda.video_created';
* The id of the video
* @var string
private $videoId;
* List of encoding ids of this video
* @var string[]
private $encodingIds = array();
* Constructs a new VideoCreatedEvent.
* @param string $videoId Video id
* @param string[] $encodingIds Ids of the video's encodings
public function __construct($videoId, array $encodingIds)
$this->videoId = $videoId;
$this->encodingIds = $encodingIds;
}
* Returns the video id.
* @return string The video id
public function getVideoId()
return $this->videoId;
* Returns the video's encoding ids.
* @return string[] The encoding ids
public function getEncodingIds()
return $this->encodingIds;