for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Data\Reader\Iterable\Processor;
use Yiisoft\Data\Reader\Filter\FilterProcessorInterface;
class Equals implements IterableProcessorInterface, FilterProcessorInterface
{
public function getOperator(): string
return \YiiSoft\Data\Reader\Filter\Equals::getOperator();
}
public function match(array $item, array $arguments, array $filterProcessors): bool
[$field, $value] = $arguments;
return $item[$field] == $value;