Fixed an error in a variable and method of the waveform Class

This commit is contained in:
Romain Biard 2016-11-16 13:19:05 -03:00
commit a32fa06ac4

View file

@ -22,26 +22,26 @@ use FFMpeg\Coordinate\TimeCode;
class Waveform extends AbstractMediaType class Waveform extends AbstractMediaType
{ {
/** @var Video */ /** @var Video */
private $video; private $audio;
private $width; private $width;
private $height; private $height;
public function __construct(Audio $audio, FFMpegDriver $driver, FFProbe $ffprobe, $width, $height) public function __construct(Audio $audio, FFMpegDriver $driver, FFProbe $ffprobe, $width, $height)
{ {
parent::__construct($video->getPathfile(), $driver, $ffprobe); parent::__construct($video->getPathfile(), $driver, $ffprobe);
$this->video = $video; $this->audio = $audio;
$this->width = $width; $this->width = $width;
$this->height = $height; $this->height = $height;
} }
/** /**
* Returns the video related to the waveform. * Returns the audio related to the waveform.
* *
* @return Video * @return Audio
*/ */
public function getVideo() public function getAudio()
{ {
return $this->video; return $this->audio;
} }
/** /**