Newer
Older
<?php
namespace IQDEV\ElasticSearch\Search\BoolQuery;
use IQDEV\ElasticSearch\Esable;
use Ramsey\Collection\AbstractCollection;
final class BoolQueryCollection extends AbstractCollection implements Esable
{
public function getType(): string
{
return Esable::class;
}
public function es(): array
{
return array_map(static fn (Esable $facet) => $facet->es(), $this->toArray());