-
Notifications
You must be signed in to change notification settings - Fork 0
/
UserController.php
51 lines (44 loc) · 1.12 KB
/
UserController.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php namespace MyENA\PHPIPAMAPI\Chain;
use MyENA\PHPIPAMAPI\AbstractPart;
use MyENA\PHPIPAMAPI\Chain\User\DELETE;
use MyENA\PHPIPAMAPI\Chain\User\GET;
use MyENA\PHPIPAMAPI\Chain\User\PATCH;
use MyENA\PHPIPAMAPI\Chain\User\POST;
use MyENA\PHPIPAMAPI\Part\UriPart;
/**
* Class UserController
* @package MyENA\PHPIPAMAPI\Chain
*/
class UserController extends AbstractPart implements UriPart {
const PATH = 'user/';
/**
* @return \MyENA\PHPIPAMAPI\Chain\User\GET
*/
public function GET(): GET {
return $this->newPart(GET::class);
}
/**
* @return \MyENA\PHPIPAMAPI\Chain\User\POST
*/
public function POST(): POST {
return $this->newPart(POST::class);
}
/**
* @return \MyENA\PHPIPAMAPI\Chain\User\PATCH
*/
public function PATCH(): PATCH {
return $this->newPart(PATCH::class);
}
/**
* @return \MyENA\PHPIPAMAPI\Chain\User\DELETE
*/
public function DELETE(): DELETE {
return $this->newPart(DELETE::class);
}
/**
* @return string
*/
public function getUriPart(): string {
return self::PATH;
}
}