<?php

declare (strict_types=1);
namespace PoP\ComponentModel\Stores;

/** @internal */
class MutationResolutionStore implements \PoP\ComponentModel\Stores\MutationResolutionStoreInterface
{
    /**
     * @var array<string,mixed>
     */
    private array $results = [];
    public function setResult(object $object, mixed $result) : void
    {
        $this->results[\get_class($object)] = $result;
    }
    public function getResult(object $object) : mixed
    {
        return $this->results[\get_class($object)];
    }
}
