for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Chrisyue\PhpM3u8\PdFactory;
use Chrisyue\PhpM3u8\Parser\ParsersInterface;
use Chrisyue\PhpM3u8\PropertyReader\PropertyReaderInterface;
use Chrisyue\PhpM3u8\PropertyReader\PropertyReaderAwareInterface;
use Chrisyue\PhpM3u8\PropertyReader\PropertyReaderAwareTrait;
abstract class AbstractParentAnnotReadableFactory implements PdFactoryInterface, PropertyReaderAwareInterface
{
use PropertyReaderAwareTrait;
public function initParsers(ParsersInterface $parsers, $class)
foreach ($this->reader->read($class, PdFactoryInterface::class) as $key => $factory) {
if ($factory instanceof PropertyReaderAwareInterface) {
$factory->setReader($this->reader);
}
$parsers->set($key, $factory->createParser());
return $parsers;