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

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

public addCue ( Captioning\Format\TtmlCue $_mixed, $_start = null, $_stop = null ) : Captioning\FileInterface
$_mixed Captioning\Format\TtmlCue
Результат Captioning\FileInterface
    public function addCue($_mixed, $_start = null, $_stop = null)
    {
        if (is_object($_mixed) && get_class($_mixed) === self::getExpectedCueClass($this)) {
            if (null !== $_mixed->getStyle() && !isset($this->styles[$_mixed->getStyle()])) {
                throw new \InvalidArgumentException(sprintf('Invalid cue style "%s"', $_mixed->getStyle()));
            }
            if (null !== $_mixed->getRegion() && !isset($this->regions[$_mixed->getRegion()])) {
                throw new \InvalidArgumentException(sprintf('Invalid cue region "%s"', $_mixed->getRegion()));
            }
        }
        return parent::addCue($_mixed, $_start, $_stop);
    }