public static function create(
        ?string $queryUUID,
        int $totalItems,
        int $totalHits,
        ? Aggregations $aggregations,
        array $suggests,
        array $items
    ): self {
        $result = new self(
            $queryUUID,
            $totalItems,
            $totalHits
        );

        $result->aggregations = $aggregations;
        $result->suggests = $suggests;
        $result->items = $items;

        return $result;
    }
public static function create(
        ?string $queryUUID,
        int $totalItems,
        int $totalHits,
        ? Aggregations $aggregations,
        array $suggests,
        array $items
    ): self {
        $result = new self(
            $queryUUID,
            $totalItems,
            $totalHits
        );

        $result->aggregations = $aggregations;
        $result->suggests = $suggests;
        $result->items = $items;

        return $result;
    }
public static function create ( ? string $ queryUUID , int $ totalItems , int $ totalHits , ? Aggregations $ aggregations , array $ suggests , array $ items ) : self { $ result = new self ( $ queryUUID , $ totalItems , $ totalHits ) ; $ result -> aggregations = $ aggregations ; $ result -> suggests = $ suggests ; $ result -> items = $ items ; return $ result ; }
Create by.

@param string|null       $queryUUID
@param int               $totalItems
@param int               $totalHits
@param Aggregations|null $aggregations
@param string[]          $suggests
@param Item[]            $items

@return Result
Create by .