Captioning\Cue::addTextLine PHP Méthode

addTextLine() public méthode

public addTextLine ( string $_line )
$_line string
    public function addTextLine($_line)
    {
        $split = array_map('trim', preg_split('/$\\R?^/m', $_line));
        if (count($split) > 1) {
            foreach ($split as $splittedLine) {
                $this->addTextLine($splittedLine);
            }
        } elseif (trim($_line) !== '') {
            $this->textLines[] = $_line;
            $this->getText();
        }
        return $this;
    }