for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Ray\AuraSqlModule;
use Ray\Aop\AbstractMatcher;
use ReflectionClass;
use ReflectionMethod;
use function in_array;
class IsInMethodMatcher extends AbstractMatcher
{
/**
* {@inheritdoc}
*
* @phpstan-param ReflectionClass<object> $class
* @phpstan-param array<mixed> $arguments
* @codeCoverageIgnore
*/
public function matchesClass(ReflectionClass $class, array $arguments): bool
unset($class, $arguments);
return true;
}
public function matchesMethod(ReflectionMethod $method, array $arguments): bool
/** @var array<mixed> $firstArg */
$firstArg = $arguments[0];
return in_array($method->name, $firstArg, true);