2022-07-05 15:55:47 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace DNW\Skills;
|
2010-08-28 22:05:41 -04:00
|
|
|
|
|
|
|
class Teams
|
|
|
|
{
|
2023-08-02 10:10:57 +00:00
|
|
|
/**
|
|
|
|
* @return Team[]
|
|
|
|
*/
|
2023-08-01 12:26:38 +00:00
|
|
|
public static function concat(Team ...$args/*variable arguments*/): array
|
2010-08-28 22:05:41 -04:00
|
|
|
{
|
2022-07-05 15:55:47 +02:00
|
|
|
$result = [];
|
2010-08-28 22:05:41 -04:00
|
|
|
|
2016-05-24 16:31:21 +02:00
|
|
|
foreach ($args as $currentTeam) {
|
|
|
|
$localCurrentTeam = $currentTeam;
|
2010-10-02 21:15:47 -04:00
|
|
|
$result[] = $localCurrentTeam;
|
2010-08-28 22:05:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
return $result;
|
|
|
|
}
|
2022-07-05 15:55:47 +02:00
|
|
|
}
|