fapi-cz/php-client

View on GitHub
src/Fapi/FapiClient/EndPoints/Traits/Find.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types = 1);

namespace Fapi\FapiClient\EndPoints\Traits;

use Fapi\FapiClient\Rest\FapiRestClient;

trait Find
{

    private FapiRestClient $client;

    private string $path;

    /**
     * @param array<mixed> $parameters
     * @return array<mixed>|null
     */
    public function find(int $id, array $parameters = []): array|null
    {
        return $this->client->getResource($this->path, $id, $parameters);
    }

}