for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Behapi\PhpMatcher;
use Coduo\PHPMatcher\Matcher;
use Coduo\PHPMatcher\Factory\SimpleFactory;
/**
* Removes the chain matcher, use only the JsonMatcher
*
* @author Baptiste Clavié <[email protected]>
*/
final class MatcherFactory extends SimpleFactory
{
/** @var Matcher\JsonMatcher */
private $matcher;
public function __construct()
$orMatcher = $this->buildOrMatcher();
$this->matcher = new Matcher\JsonMatcher($orMatcher);
}
public function createMatcher(): Matcher
return new Matcher($this->matcher);