protected function parseLine(&$lineNumber, array $linesStr)
    {
        $entry = $this->createM3uEntry();

        for ($l = \count($linesStr); $lineNumber < $l; ++$lineNumber) {
            $nextLineStr = $linesStr[$lineNumber];
            $nextLineStr = \trim($nextLineStr);

            if ('' === $nextLineStr || $this->isComment($nextLineStr) || $this->isExtM3u($nextLineStr)) {
                continue;
            }

            $matched = false;
            foreach ($this->getTags() as $availableTag) {
                if ($availableTag::isMatch($nextLineStr)) {
                    $matched = true;
                    $entry->addExtTag(new $availableTag($nextLineStr));
                    break;
                }
            }

            if (!$matched) {
                $entry->setPath($nextLineStr);
                break;
            }
        }

        return $entry;
    }
protected function parseLine(&$lineNumber, array $linesStr)
    {
        $entry = $this->createM3uEntry();

        for ($l = \count($linesStr); $lineNumber < $l; ++$lineNumber) {
            $nextLineStr = $linesStr[$lineNumber];
            $nextLineStr = \trim($nextLineStr);

            if ('' === $nextLineStr || $this->isComment($nextLineStr) || $this->isExtM3u($nextLineStr)) {
                continue;
            }

            $matched = false;
            foreach ($this->getTags() as $availableTag) {
                if ($availableTag::isMatch($nextLineStr)) {
                    $matched = true;
                    $entry->addExtTag(new $availableTag($nextLineStr));
                    break;
                }
            }

            if (!$matched) {
                $entry->setPath($nextLineStr);
                break;
            }
        }

        return $entry;
    }
protected function parseLine ( & $ lineNumber , array $ linesStr ) { $ entry = $ this -> createM3uEntry ( ) ; for ( $ l = \ count ( $ linesStr ) ; $ lineNumber < $ l ; ++ $ lineNumber ) { $ nextLineStr = $ linesStr [ $ lineNumber ] ; $ nextLineStr = \ trim ( $ nextLineStr ) ; if ( '' === $ nextLineStr || $ this -> isComment ( $ nextLineStr ) || $ this -> isExtM3u ( $ nextLineStr ) ) { continue ; } $ matched = false ; foreach ( $ this -> getTags ( ) as $ availableTag ) { if ( $ availableTag :: isMatch ( $ nextLineStr ) ) { $ matched = true ; $ entry -> addExtTag ( new $ availableTag ( $ nextLineStr ) ) ; break ; } } if ( ! $ matched ) { $ entry -> setPath ( $ nextLineStr ) ; break ; } } return $ entry ; }
Parse one line

@param int $lineNumber
@param string[] $linesStr
@return M3uEntry
Parse one line