@@ -216,12 +216,12 @@ public function isAbstract(): bool
216
216
* @param string|string[]
217
217
* @return static
218
218
*/
219
- public function setExtends ($ types ): self
219
+ public function setExtends ($ names ): self
220
220
{
221
- if (!is_string ($ types ) && !(is_array ($ types ) && Nette \Utils \Arrays::every ($ types , 'is_string ' ))) {
221
+ if (!is_string ($ names ) && !(is_array ($ names ) && Nette \Utils \Arrays::every ($ names , 'is_string ' ))) {
222
222
throw new Nette \InvalidArgumentException ('Argument must be string or string[]. ' );
223
223
}
224
- $ this ->extends = $ types ;
224
+ $ this ->extends = $ names ;
225
225
return $ this ;
226
226
}
227
227
@@ -238,10 +238,10 @@ public function getExtends()
238
238
/**
239
239
* @return static
240
240
*/
241
- public function addExtend (string $ type ): self
241
+ public function addExtend (string $ name ): self
242
242
{
243
243
$ this ->extends = (array ) $ this ->extends ;
244
- $ this ->extends [] = $ type ;
244
+ $ this ->extends [] = $ name ;
245
245
return $ this ;
246
246
}
247
247
@@ -250,9 +250,9 @@ public function addExtend(string $type): self
250
250
* @param string[]
251
251
* @return static
252
252
*/
253
- public function setImplements (array $ types ): self
253
+ public function setImplements (array $ names ): self
254
254
{
255
- $ this ->implements = $ types ;
255
+ $ this ->implements = $ names ;
256
256
return $ this ;
257
257
}
258
258
@@ -269,9 +269,9 @@ public function getImplements(): array
269
269
/**
270
270
* @return static
271
271
*/
272
- public function addImplement (string $ type ): self
272
+ public function addImplement (string $ name ): self
273
273
{
274
- $ this ->implements [] = $ type ;
274
+ $ this ->implements [] = $ name ;
275
275
return $ this ;
276
276
}
277
277
@@ -280,9 +280,9 @@ public function addImplement(string $type): self
280
280
* @param string[]
281
281
* @return static
282
282
*/
283
- public function setTraits (array $ traits ): self
283
+ public function setTraits (array $ names ): self
284
284
{
285
- $ this ->traits = array_fill_keys ($ traits , []);
285
+ $ this ->traits = array_fill_keys ($ names , []);
286
286
return $ this ;
287
287
}
288
288
@@ -299,9 +299,9 @@ public function getTraits(): array
299
299
/**
300
300
* @return static
301
301
*/
302
- public function addTrait (string $ trait , array $ resolutions = []): self
302
+ public function addTrait (string $ name , array $ resolutions = []): self
303
303
{
304
- $ this ->traits [$ trait ] = $ resolutions ;
304
+ $ this ->traits [$ name ] = $ resolutions ;
305
305
return $ this ;
306
306
}
307
307
0 commit comments