feat: Add users endpoint

This commit is contained in:
Michael Gerdemann
2020-01-19 16:10:21 +01:00
parent 5c2450116b
commit 53c5c232d2
5 changed files with 259 additions and 15 deletions

View File

@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
namespace Avency\Gitea\Endpoint;
use Avency\Gitea\Client;
use Avency\Gitea\Endpoint\Users\TokensTrait;
use Avency\Gitea\Endpoint\Users\UsersTrait;
/**
* Users endpoint
*/
class Users extends AbstractEndpoint implements EndpointInterface
{
use TokensTrait;
use UsersTrait;
const BASE_URI = '/users';
/**
* @var Client
*/
protected $client;
/**
* @param Client $client
*/
public function __construct(Client $client)
{
$this->client = $client;
}
}