fapi-cz/php-client

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

Summary

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

namespace Fapi\FapiClient\EndPoints\Traits;

use Fapi\FapiClient\Rest\FapiRestClient;

trait FindAll
{

    private FapiRestClient $client;

    private string $path;

    private string $resources;

    /**
     * @param array<mixed> $parameters
     * @return array<mixed>
     */
    public function findAll(array $parameters = []): array
    {
        return $this->client->getResources($this->path, $this->resources, $parameters);
    }

}