RiktaD/php-query

View on GitHub
src/Operation/Filter/InArray.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Rikta\PhpQuery\Operation\Filter;

class InArray extends Filter
{
    public function __construct(array $items)
    {
        parent::__construct(static fn ($item) => \in_array($item, $items, true));
    }
}