<?php

namespace ZenoChatbot\Services\Indexing\Result;

class IndexResult
{
    /** @var array<string,mixed> */
    private $payload;

    /** @param array<string,mixed> $payload */
    public function __construct(array $payload)
    {
        $this->payload = $payload;
    }

    /** @return array<string,mixed> */
    public function toArray(): array
    {
        return $this->payload;
    }
}
