Captioning\Format\TtmlFile::setTimeBase PHP Метод

setTimeBase() публичный Метод

public setTimeBase ( string $_timeBase ) : TtmlFile
$_timeBase string
Результат TtmlFile
    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;
    }