|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Commercetools\Core\Builder\Update; |
|
4
|
|
|
|
|
5
|
|
|
use Commercetools\Core\Request\Channels\Command\ChannelSetAddressAction; |
|
6
|
|
|
use Commercetools\Core\Request\Channels\Command\ChannelChangeDescriptionAction; |
|
7
|
|
|
use Commercetools\Core\Request\Channels\Command\ChannelChangeNameAction; |
|
8
|
|
|
use Commercetools\Core\Request\Channels\Command\ChannelSetGeoLocation; |
|
9
|
|
|
use Commercetools\Core\Request\Channels\Command\ChannelSetRolesAction; |
|
10
|
|
|
use Commercetools\Core\Request\Channels\Command\ChannelRemoveRolesAction; |
|
11
|
|
|
use Commercetools\Core\Request\Channels\Command\ChannelAddRolesAction; |
|
12
|
|
|
use Commercetools\Core\Request\Channels\Command\ChannelChangeKeyAction; |
|
13
|
|
|
|
|
14
|
|
|
class ChannelsActionBuilder |
|
15
|
|
|
{ |
|
16
|
|
|
/** |
|
17
|
|
|
* @return ChannelSetAddressAction |
|
18
|
|
|
*/ |
|
19
|
|
|
public function setAddress() |
|
20
|
|
|
{ |
|
21
|
|
|
return ChannelSetAddressAction::of(); |
|
22
|
|
|
} |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @return ChannelChangeDescriptionAction |
|
26
|
|
|
*/ |
|
27
|
|
|
public function changeDescription() |
|
28
|
|
|
{ |
|
29
|
|
|
return ChannelChangeDescriptionAction::of(); |
|
30
|
|
|
} |
|
31
|
|
|
|
|
32
|
|
|
/** |
|
33
|
|
|
* @return ChannelChangeNameAction |
|
34
|
|
|
*/ |
|
35
|
|
|
public function changeName() |
|
36
|
|
|
{ |
|
37
|
|
|
return ChannelChangeNameAction::of(); |
|
38
|
|
|
} |
|
39
|
|
|
|
|
40
|
|
|
/** |
|
41
|
|
|
* @return ChannelSetGeoLocation |
|
42
|
|
|
*/ |
|
43
|
|
|
public function setGeoLocation() |
|
44
|
|
|
{ |
|
45
|
|
|
return ChannelSetGeoLocation::of(); |
|
46
|
|
|
} |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* @return ChannelSetRolesAction |
|
50
|
|
|
*/ |
|
51
|
|
|
public function setRoles() |
|
52
|
|
|
{ |
|
53
|
|
|
return ChannelSetRolesAction::of(); |
|
54
|
|
|
} |
|
55
|
|
|
|
|
56
|
|
|
/** |
|
57
|
|
|
* @return ChannelRemoveRolesAction |
|
58
|
|
|
*/ |
|
59
|
|
|
public function removeRoles() |
|
60
|
|
|
{ |
|
61
|
|
|
return ChannelRemoveRolesAction::of(); |
|
62
|
|
|
} |
|
63
|
|
|
|
|
64
|
|
|
/** |
|
65
|
|
|
* @return ChannelAddRolesAction |
|
66
|
|
|
*/ |
|
67
|
|
|
public function addRoles() |
|
68
|
|
|
{ |
|
69
|
|
|
return ChannelAddRolesAction::of(); |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
|
|
/** |
|
73
|
|
|
* @return ChannelChangeKeyAction |
|
74
|
|
|
*/ |
|
75
|
|
|
public function changeKey() |
|
76
|
|
|
{ |
|
77
|
|
|
return ChannelChangeKeyAction::of(); |
|
78
|
|
|
} |
|
79
|
|
|
} |
|
80
|
|
|
|