for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Ray.Aop package
*
* @license http://opensource.org/licenses/bsd-license.php BSD
*/
namespace Ray\Aop\Matcher;
use Ray\Aop\AbstractMatcher;
class LogicalNotMatcher extends AbstractMatcher
{
* {@inheritdoc}
public function matchesClass(\ReflectionClass $class, array $arguments)
list($matcher) = $arguments;
/* @var $matcher AbstractMatcher */
$isNot = ! $matcher->matchesClass($class, $matcher->getArguments());
return $isNot;
}
public function matchesMethod(\ReflectionMethod $method, array $arguments)
$isNot = ! $matcher->matchesMethod($method, [$arguments]);