2020-06-29 00:30:57 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Zoomyboy\LaravelNami;
|
|
|
|
|
2020-07-04 02:11:30 +02:00
|
|
|
use Illuminate\Support\LazyCollection;
|
2020-06-29 00:30:57 +02:00
|
|
|
|
2020-07-04 02:11:30 +02:00
|
|
|
class MemberCollection extends LazyCollection {
|
2020-06-29 00:30:57 +02:00
|
|
|
|
|
|
|
public static function fromOverview($items) {
|
|
|
|
$self = new self($items);
|
|
|
|
|
|
|
|
return $self->map(function($item) {
|
|
|
|
return Member::fromOverview($item);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|