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