<?php namespace IQDEV\ElasticSearch\Facet\Item; class FacetItemSingle extends FacetItem { public static function create(?string $value = null, int $count = 0, ?string $label = null): self { $instance = new self(); $instance->value = $value; $instance->count = $count; $instance->label = $label; return $instance; } }