for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace DependencyAnalyzer\DependencyGraph\StructuralElementPatternMatcher;
use DependencyAnalyzer\DependencyGraph\FullyQualifiedStructuralElementName\Base as FQSEN;
use DependencyAnalyzer\DependencyGraph\StructuralElementPatternMatcher\Matchable;
class FQSENMatcher implements Matchable
{
/**
* @var FQSEN
*/
private $fqsen;
public function __construct(FQSEN $fqsen)
$this->fqsen = $fqsen;
}
public function isMatch(FQSEN $target): bool
return $this->fqsen->include($target);
public function getPattern(): string
return $this->fqsen->toString();