for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FlexFqcnFinder;
class FqcnFinderComposite implements FqcnFinderInterface
{
/**
* @var FqcnFinderInterface[]
*/
protected $fqcnFinders;
public function __construct(FqcnFinderInterface ...$fqcnFinders)
$this->fqcnFinders = $fqcnFinders;
}
* @inheritDoc
public function find(): array
$fqcns = [];
foreach ($this->fqcnFinders as $fqcnFinder) {
$fqcns[] = $fqcnFinder->find();
return array_unique(array_merge(...array_values($fqcns)));