for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Chrisyue\PhpM3u8\Parser;
class FileParser
{
private $parser;
public function __construct(Parser $parser)
$this->parser = $parser;
}
public function parse(\SplFileObject $file)
while (!$file->eof()) {
$this->parser->parseLine($file->fgets());
return $this->parser->getPlaylist();