for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Mala package.
*
* (c) Chrisyue <http://chrisyue.com/>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Chrisyue\Mala\Model;
use Chrisyue\PhpM3u8\M3u8\MediaSegment\MediaSegment;
class ScheduledMediaSegment extends MediaSegment
{
protected $program;
protected $channel;
protected $startsAt;
protected $endsAt;
public function __construct(
ProgramInterface $program,
\DateTime $startsAt,
\DateTime $endsAt,
$uri,
$duration,
$sequence,
$isDiscontinuity
) {
$this->program = $program;
$this->channel = $program->getChannel();
$this->startsAt = $startsAt;
$this->endsAt = $endsAt;
parent::__construct($uri, $duration, $sequence, $isDiscontinuity);
}
public function getProgram()
return $this->program;
public function getChannel()
return $this->channel;
public function getStartsAt()
return $this->startsAt;
public function getEndsAt()
return $this->endsAt;