Captioning\File::merge PHP Method

merge() public method

public merge ( captioning\FileInterface $_file )
$_file captioning\FileInterface
    public function merge(FileInterface $_file)
    {
        if (!is_a($_file, get_class($this))) {
            throw new \Exception('Can\'t merge! Wrong format: ' . $this->getFormat($_file));
        }
        $this->cues = array_merge($this->cues, $_file->getCues());
        $this->sortCues();
        return $this;
    }