for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace RulerZ\Executor\ArrayTarget;
use RulerZ\Context\ExecutionContext;
use RulerZ\Context\ObjectContext;
trait SatisfiesTrait
{
abstract protected function execute($target, array $operators, array $parameters);
/**
* {@inheritdoc}
*/
public function satisfies($target, array $parameters, array $operators, ExecutionContext $context): bool
$context
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$wrappedTarget = is_array($target) ? $target : new ObjectContext($target);
return $this->execute($wrappedTarget, $operators, $parameters);
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.