You need to sign in or sign up before continuing.
Newer
Older
namespace IQDEV\ElasticSearch\Facet\Collection;
use Ramsey\Collection\AbstractCollection;
final class FacetCollection extends AbstractCollection implements Esable
{
public function getType(): string
{
return array_map(static fn(Facetable $facet) => $facet->es(), $this->toArray());