koel/app/Values/SmartPlaylistRuleGroupCollection.php

14 lines
293 B
PHP
Raw Normal View History

<?php
2023-08-20 15:11:51 +00:00
namespace App\DTO;
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']));
}
}