laravel-nami-api/src/MemberCollection.php

18 lines
319 B
PHP
Raw Normal View History

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