koel/app/Values/SmartPlaylistRuleGroupCollection.php
2023-08-20 17:24:56 +02:00

13 lines
296 B
PHP

<?php
namespace App\Values;
use Illuminate\Support\Collection;
final class SmartPlaylistRuleGroupCollection extends Collection
{
public static function create(array $array): self
{
return new self(collect($array)->transform([SmartPlaylistRuleGroup::class, 'create']));
}
}