<?php

namespace NoahVet\Reef\Contract\Phpunit;

class JsonBody implements RawBodyInterface
{
    public function __construct(
        public readonly string $rawBody,
    ) {
    }

    #[\Override]
    public function contentType(): string
    {
        return 'application/json';
    }

    #[\Override]
    public function getRawBody(): string
    {
        return $this->rawBody;
    }
}
