|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Commercetools\Core\Builder\Update; |
|
4
|
|
|
|
|
5
|
|
|
use Commercetools\Core\Request\Categories\Command\CategorySetExternalIdAction; |
|
6
|
|
|
use Commercetools\Core\Request\Categories\Command\CategorySetDescriptionAction; |
|
7
|
|
|
use Commercetools\Core\Request\Categories\Command\CategorySetMetaTitleAction; |
|
8
|
|
|
use Commercetools\Core\Request\Categories\Command\CategorySetAssetCustomFieldAction; |
|
9
|
|
|
use Commercetools\Core\Request\Categories\Command\CategorySetAssetKeyAction; |
|
10
|
|
|
use Commercetools\Core\Request\Categories\Command\CategorySetAssetCustomTypeAction; |
|
11
|
|
|
use Commercetools\Core\Request\Categories\Command\CategorySetMetaKeywordsAction; |
|
12
|
|
|
use Commercetools\Core\Request\Categories\Command\CategorySetMetaDescriptionAction; |
|
13
|
|
|
use Commercetools\Core\Request\Categories\Command\CategoryChangeSlugAction; |
|
14
|
|
|
use Commercetools\Core\Request\Categories\Command\CategorySetAssetDescriptionAction; |
|
15
|
|
|
use Commercetools\Core\Request\Categories\Command\CategoryChangeNameAction; |
|
16
|
|
|
use Commercetools\Core\Request\Categories\Command\CategorySetAssetSourcesAction; |
|
17
|
|
|
use Commercetools\Core\Request\Categories\Command\CategorySetKeyAction; |
|
18
|
|
|
use Commercetools\Core\Request\Categories\Command\CategorySetAssetTagsAction; |
|
19
|
|
|
use Commercetools\Core\Request\Categories\Command\CategoryChangeAssetOrderAction; |
|
20
|
|
|
use Commercetools\Core\Request\Categories\Command\CategoryAddAssetAction; |
|
21
|
|
|
use Commercetools\Core\Request\Categories\Command\CategoryChangeParentAction; |
|
22
|
|
|
use Commercetools\Core\Request\Categories\Command\CategoryChangeOrderHintAction; |
|
23
|
|
|
use Commercetools\Core\Request\Categories\Command\CategoryChangeAssetNameAction; |
|
24
|
|
|
use Commercetools\Core\Request\Categories\Command\CategoryRemoveAssetAction; |
|
25
|
|
|
|
|
26
|
|
|
class CategoriesActionBuilder |
|
27
|
|
|
{ |
|
28
|
|
|
/** |
|
29
|
|
|
* @return CategorySetExternalIdAction |
|
30
|
|
|
*/ |
|
31
|
|
|
public function setExternalId() |
|
32
|
|
|
{ |
|
33
|
|
|
return CategorySetExternalIdAction::of(); |
|
34
|
|
|
} |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* @return CategorySetDescriptionAction |
|
38
|
|
|
*/ |
|
39
|
|
|
public function setDescription() |
|
40
|
|
|
{ |
|
41
|
|
|
return CategorySetDescriptionAction::of(); |
|
42
|
|
|
} |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* @return CategorySetMetaTitleAction |
|
46
|
|
|
*/ |
|
47
|
|
|
public function setMetaTitle() |
|
48
|
|
|
{ |
|
49
|
|
|
return CategorySetMetaTitleAction::of(); |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
|
|
/** |
|
53
|
|
|
* @return CategorySetAssetCustomFieldAction |
|
54
|
|
|
*/ |
|
55
|
|
|
public function setAssetCustomField() |
|
56
|
|
|
{ |
|
57
|
|
|
return CategorySetAssetCustomFieldAction::of(); |
|
58
|
|
|
} |
|
59
|
|
|
|
|
60
|
|
|
/** |
|
61
|
|
|
* @return CategorySetAssetKeyAction |
|
62
|
|
|
*/ |
|
63
|
|
|
public function setAssetKey() |
|
64
|
|
|
{ |
|
65
|
|
|
return CategorySetAssetKeyAction::of(); |
|
66
|
|
|
} |
|
67
|
|
|
|
|
68
|
|
|
/** |
|
69
|
|
|
* @return CategorySetAssetCustomTypeAction |
|
70
|
|
|
*/ |
|
71
|
|
|
public function setAssetCustomType() |
|
72
|
|
|
{ |
|
73
|
|
|
return CategorySetAssetCustomTypeAction::of(); |
|
74
|
|
|
} |
|
75
|
|
|
|
|
76
|
|
|
/** |
|
77
|
|
|
* @return CategorySetMetaKeywordsAction |
|
78
|
|
|
*/ |
|
79
|
|
|
public function setMetaKeywords() |
|
80
|
|
|
{ |
|
81
|
|
|
return CategorySetMetaKeywordsAction::of(); |
|
82
|
|
|
} |
|
83
|
|
|
|
|
84
|
|
|
/** |
|
85
|
|
|
* @return CategorySetMetaDescriptionAction |
|
86
|
|
|
*/ |
|
87
|
|
|
public function setMetaDescription() |
|
88
|
|
|
{ |
|
89
|
|
|
return CategorySetMetaDescriptionAction::of(); |
|
90
|
|
|
} |
|
91
|
|
|
|
|
92
|
|
|
/** |
|
93
|
|
|
* @return CategoryChangeSlugAction |
|
94
|
|
|
*/ |
|
95
|
|
|
public function changeSlug() |
|
96
|
|
|
{ |
|
97
|
|
|
return CategoryChangeSlugAction::of(); |
|
98
|
|
|
} |
|
99
|
|
|
|
|
100
|
|
|
/** |
|
101
|
|
|
* @return CategorySetAssetDescriptionAction |
|
102
|
|
|
*/ |
|
103
|
|
|
public function setAssetDescription() |
|
104
|
|
|
{ |
|
105
|
|
|
return CategorySetAssetDescriptionAction::of(); |
|
106
|
|
|
} |
|
107
|
|
|
|
|
108
|
|
|
/** |
|
109
|
|
|
* @return CategoryChangeNameAction |
|
110
|
|
|
*/ |
|
111
|
|
|
public function changeName() |
|
112
|
|
|
{ |
|
113
|
|
|
return CategoryChangeNameAction::of(); |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* @return CategorySetAssetSourcesAction |
|
118
|
|
|
*/ |
|
119
|
|
|
public function setAssetSources() |
|
120
|
|
|
{ |
|
121
|
|
|
return CategorySetAssetSourcesAction::of(); |
|
122
|
|
|
} |
|
123
|
|
|
|
|
124
|
|
|
/** |
|
125
|
|
|
* @return CategorySetKeyAction |
|
126
|
|
|
*/ |
|
127
|
|
|
public function setKey() |
|
128
|
|
|
{ |
|
129
|
|
|
return CategorySetKeyAction::of(); |
|
130
|
|
|
} |
|
131
|
|
|
|
|
132
|
|
|
/** |
|
133
|
|
|
* @return CategorySetAssetTagsAction |
|
134
|
|
|
*/ |
|
135
|
|
|
public function setAssetTags() |
|
136
|
|
|
{ |
|
137
|
|
|
return CategorySetAssetTagsAction::of(); |
|
138
|
|
|
} |
|
139
|
|
|
|
|
140
|
|
|
/** |
|
141
|
|
|
* @return CategoryChangeAssetOrderAction |
|
142
|
|
|
*/ |
|
143
|
|
|
public function changeAssetOrder() |
|
144
|
|
|
{ |
|
145
|
|
|
return CategoryChangeAssetOrderAction::of(); |
|
146
|
|
|
} |
|
147
|
|
|
|
|
148
|
|
|
/** |
|
149
|
|
|
* @return CategoryAddAssetAction |
|
150
|
|
|
*/ |
|
151
|
|
|
public function addAsset() |
|
152
|
|
|
{ |
|
153
|
|
|
return CategoryAddAssetAction::of(); |
|
154
|
|
|
} |
|
155
|
|
|
|
|
156
|
|
|
/** |
|
157
|
|
|
* @return CategoryChangeParentAction |
|
158
|
|
|
*/ |
|
159
|
|
|
public function changeParent() |
|
160
|
|
|
{ |
|
161
|
|
|
return CategoryChangeParentAction::of(); |
|
162
|
|
|
} |
|
163
|
|
|
|
|
164
|
|
|
/** |
|
165
|
|
|
* @return CategoryChangeOrderHintAction |
|
166
|
|
|
*/ |
|
167
|
|
|
public function changeOrderHint() |
|
168
|
|
|
{ |
|
169
|
|
|
return CategoryChangeOrderHintAction::of(); |
|
170
|
|
|
} |
|
171
|
|
|
|
|
172
|
|
|
/** |
|
173
|
|
|
* @return CategoryChangeAssetNameAction |
|
174
|
|
|
*/ |
|
175
|
|
|
public function changeAssetName() |
|
176
|
|
|
{ |
|
177
|
|
|
return CategoryChangeAssetNameAction::of(); |
|
178
|
|
|
} |
|
179
|
|
|
|
|
180
|
|
|
/** |
|
181
|
|
|
* @return CategoryRemoveAssetAction |
|
182
|
|
|
*/ |
|
183
|
|
|
public function removeAsset() |
|
184
|
|
|
{ |
|
185
|
|
|
return CategoryRemoveAssetAction::of(); |
|
186
|
|
|
} |
|
187
|
|
|
} |
|
188
|
|
|
|