laravel-nami-api/src/MemberCollection.php

18 lines
327 B
PHP

<?php
namespace Zoomyboy\LaravelNami;
use Illuminate\Support\LazyCollection;
class MemberCollection extends LazyCollection {
public static function fromOverview($items) {
$self = new self($items);
return $self->map(function($item) {
return Member::fromOverview($item);
});
}
}