Skip to content

Commit 841ba1f

Browse files
committed
- Bundle API update
1 parent 6643510 commit 841ba1f

File tree

5 files changed

+331
-336
lines changed

5 files changed

+331
-336
lines changed

src/CrowdinApiClient/Model/Bundle.php

+86-32
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,35 @@ class Bundle extends BaseModel
3838
protected $exportPattern;
3939

4040
/**
41-
* @var string[]
41+
* @var bool
42+
*/
43+
protected $isMultilingual;
44+
45+
/**
46+
* @var bool
47+
*/
48+
protected $includeProjectSourceLanguage;
49+
50+
/**
51+
* @var bool
52+
*/
53+
protected $includeInContextPseudoLanguage;
54+
55+
/**
56+
* @var int[]
4257
*/
4358
protected $labelIds;
4459

60+
/**
61+
* @var int[]
62+
*/
63+
protected $excludeLabelIds;
64+
65+
/**
66+
* @var string
67+
*/
68+
protected $webUrl;
69+
4570
/**
4671
* @var string
4772
*/
@@ -62,126 +87,155 @@ public function __construct(array $data = [])
6287
$this->sourcePatterns = (array)$this->getDataProperty('sourcePatterns');
6388
$this->ignorePatterns = (array)$this->getDataProperty('ignorePatterns');
6489
$this->exportPattern = (string)$this->getDataProperty('exportPattern');
90+
$this->isMultilingual = (bool)$this->getDataProperty('isMultilingual');
91+
$this->includeProjectSourceLanguage = (bool)$this->getDataProperty('includeProjectSourceLanguage');
92+
$this->includeInContextPseudoLanguage = (bool)$this->getDataProperty('includeInContextPseudoLanguage');
6593
$this->labelIds = (array)$this->getDataProperty('labelIds');
94+
$this->excludeLabelIds = (array)$this->getDataProperty('excludeLabelIds');
95+
$this->webUrl = (string)$this->getDataProperty('webUrl');
6696
$this->createdAt = (string)$this->getDataProperty('createdAt');
6797
$this->updatedAt = (string)$this->getDataProperty('updatedAt');
6898
}
6999

70-
/**
71-
* @return int
72-
*/
73100
public function getId(): int
74101
{
75102
return $this->id;
76103
}
77104

78-
/**
79-
* @return string
80-
*/
81105
public function getName(): string
82106
{
83107
return $this->name;
84108
}
85109

86-
/**
87-
* @param string $name
88-
*/
89110
public function setName(string $name): void
90111
{
91112
$this->name = $name;
92113
}
93114

94-
/**
95-
* @return string
96-
*/
97115
public function getFormat(): string
98116
{
99117
return $this->format;
100118
}
101119

102-
/**
103-
* @param string $format
104-
*/
105120
public function setFormat(string $format): void
106121
{
107122
$this->format = $format;
108123
}
109124

110125
/**
111-
* @return array|string[]
126+
* @return string[]
112127
*/
113128
public function getSourcePatterns(): array
114129
{
115130
return $this->sourcePatterns;
116131
}
117132

118133
/**
119-
* @param array|string[] $sourcePatterns
134+
* @param string[] $sourcePatterns
120135
*/
121136
public function setSourcePatterns(array $sourcePatterns): void
122137
{
123138
$this->sourcePatterns = $sourcePatterns;
124139
}
125140

126141
/**
127-
* @return array|string[]
142+
* @return string[]
128143
*/
129144
public function getIgnorePatterns(): array
130145
{
131146
return $this->ignorePatterns;
132147
}
133148

134149
/**
135-
* @param array|string[] $ignorePatterns
150+
* @param string[] $ignorePatterns
136151
*/
137152
public function setIgnorePatterns(array $ignorePatterns): void
138153
{
139154
$this->ignorePatterns = $ignorePatterns;
140155
}
141156

142-
/**
143-
* @return string
144-
*/
145157
public function getExportPattern(): string
146158
{
147159
return $this->exportPattern;
148160
}
149161

150-
/**
151-
* @param string $exportPattern
152-
*/
153162
public function setExportPattern(string $exportPattern): void
154163
{
155164
$this->exportPattern = $exportPattern;
156165
}
157166

167+
public function getIsMultilingual(): bool
168+
{
169+
return $this->isMultilingual;
170+
}
171+
172+
public function setIsMultilingual(bool $isMultilingual): void
173+
{
174+
$this->isMultilingual = $isMultilingual;
175+
}
176+
177+
public function getIncludeProjectSourceLanguage(): bool
178+
{
179+
return $this->includeProjectSourceLanguage;
180+
}
181+
182+
public function setIncludeProjectSourceLanguage(bool $includeProjectSourceLanguage): void
183+
{
184+
$this->includeProjectSourceLanguage = $includeProjectSourceLanguage;
185+
}
186+
187+
public function getIncludeInContextPseudoLanguage(): bool
188+
{
189+
return $this->includeInContextPseudoLanguage;
190+
}
191+
192+
public function setIncludeInContextPseudoLanguage(bool $includeInContextPseudoLanguage): void
193+
{
194+
$this->includeInContextPseudoLanguage = $includeInContextPseudoLanguage;
195+
}
196+
158197
/**
159-
* @return array|string[]
198+
* @return int[]
160199
*/
161200
public function getLabelIds(): array
162201
{
163202
return $this->labelIds;
164203
}
165204

166205
/**
167-
* @param array|string[] $labelIds
206+
* @param int[] $labelIds
168207
*/
169208
public function setLabelIds(array $labelIds): void
170209
{
171210
$this->labelIds = $labelIds;
172211
}
173212

174213
/**
175-
* @return string
214+
* @return int[]
176215
*/
177-
public function getCreatedAt(): string
216+
public function getExcludeLabelIds(): array
178217
{
179-
return $this->createdAt;
218+
return $this->excludeLabelIds;
180219
}
181220

182221
/**
183-
* @return string
222+
* @param int[] $excludeLabelIds
184223
*/
224+
public function setExcludeLabelIds(array $excludeLabelIds): void
225+
{
226+
$this->excludeLabelIds = $excludeLabelIds;
227+
}
228+
229+
public function getWebUrl(): string
230+
{
231+
return $this->webUrl;
232+
}
233+
234+
public function getCreatedAt(): string
235+
{
236+
return $this->createdAt;
237+
}
238+
185239
public function getUpdatedAt(): string
186240
{
187241
return $this->updatedAt;

0 commit comments

Comments
 (0)