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