-
Notifications
You must be signed in to change notification settings - Fork 0
/
ToolsController.php
48 lines (41 loc) · 1.06 KB
/
ToolsController.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
<?php namespace MyENA\PHPIPAMAPI\Chain;
use MyENA\PHPIPAMAPI\AbstractPart;
use MyENA\PHPIPAMAPI\Chain\Tools;
use MyENA\PHPIPAMAPI\Part\UriPart;
/**
* Class ToolsController
* @package MyENA\PHPIPAMAPI\Chain
*/
class ToolsController extends AbstractPart implements UriPart {
const PATH = 'tools/';
/**
* @return \MyENA\PHPIPAMAPI\Chain\Tools\GET
*/
public function GET(): Tools\GET {
return $this->newPart(Tools\GET::class);
}
/**
* @return \MyENA\PHPIPAMAPI\Chain\Tools\POST
*/
public function POST(): Tools\POST {
return $this->newPart(Tools\POST::class);
}
/**
* @return \MyENA\PHPIPAMAPI\Chain\Tools\PATCH
*/
public function PATCH(): Tools\PATCH {
return $this->newPart(Tools\PATCH::class);
}
/**
* @return \MyENA\PHPIPAMAPI\Chain\Tools\DELETE
*/
public function DELETE(): Tools\DELETE {
return $this->newPart(Tools\DELETE::class);
}
/**
* @return string
*/
public function getUriPart(): string {
return self::PATH;
}
}