for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Ray\Aop\Matcher;
use Ray\Aop\AbstractMatcher;
use ReflectionClass;
use ReflectionMethod;
use function assert;
final class LogicalNotMatcher extends AbstractMatcher
{
/**
* {@inheritdoc}
*/
public function matchesClass(ReflectionClass $class, array $arguments): bool
[$matcher] = $arguments;
assert($matcher instanceof AbstractMatcher);
return ! $matcher->matchesClass($class, $matcher->getArguments());
}
public function matchesMethod(ReflectionMethod $method, array $arguments): bool
return ! $matcher->matchesMethod($method, $matcher->getArguments());