feat: Add user endpoint

This commit is contained in:
Michael Gerdemann
2020-01-19 15:53:23 +01:00
parent 6e6b0b6a29
commit 5c2450116b
7 changed files with 421 additions and 27 deletions

37
Classes/Endpoint/User.php Normal file
View File

@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
namespace Avency\Gitea\Endpoint;
use Avency\Gitea\Client;
use Avency\Gitea\Endpoint\User\RepositoriesTrait;
use Avency\Gitea\Endpoint\User\UserTrait;
use Avency\Gitea\Endpoint\User\FollowersTrait;
use Avency\Gitea\Endpoint\User\KeysTrait;
/**
* User endpoint
*/
class User extends AbstractEndpoint implements EndpointInterface
{
use FollowersTrait;
use KeysTrait;
use RepositoriesTrait;
use UserTrait;
const BASE_URI = '/user';
/**
* @var Client
*/
protected $client;
/**
* @param Client $client
*/
public function __construct(Client $client)
{
$this->client = $client;
}
}