mirovit/ionic-platform-sdk

View on GitHub
src/Endpoints/Traits/FetchesResource.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Mirovit\IonicPlatformSDK\Endpoints\Traits;

use Mirovit\IonicPlatformSDK\Response\Response;

trait FetchesResource
{
    /**
     * Get a resource by id.
     *
     * @param $uuid
     * @return Response
     */
    public function get($uuid)
    {
        $response = $this->client->get("{$this->getEndpoint()}/{$uuid}");

        return $this->toResponse($response);
    }
}