14 lines
313 B
PHP
14 lines
313 B
PHP
<?php
|
|
|
|
namespace LucentNotifications\Collections;
|
|
|
|
use Illuminate\Support\Collection;
|
|
use LucentNotifications\Models\QuietHourSection;
|
|
|
|
class QuietHoursCollecton extends Collection
|
|
{
|
|
function __construct($items = [])
|
|
{
|
|
return collect($items)->map(fn($item) => new QuietHourSection($item));
|
|
}
|
|
} |