public setTimeBase ( string $_timeBase ) : |
||
$_timeBase | string | |
Результат |
public function setTimeBase($_timeBase)
{
$matchingTable = array('media' => self::TIMEBASE_MEDIA, 'smpte' => self::TIMEBASE_SMPTE, 'clock' => self::TIMEBASE_CLOCK);
if (isset($matchingTable[$_timeBase])) {
$_timeBase = $matchingTable[$_timeBase];
}
if (!in_array($_timeBase, array(self::TIMEBASE_MEDIA, self::TIMEBASE_SMPTE, self::TIMEBASE_CLOCK))) {
throw new \InvalidArgumentException();
}
$this->timeBase = $_timeBase;
return $this;
}