| Total Complexity | 8 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class MediaCollection |
||
| 12 | { |
||
| 13 | use ForwardsCalls; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var \Illuminate\Support\Collection |
||
| 17 | */ |
||
| 18 | private $items; |
||
| 19 | |||
| 20 | public function __construct(array $items = []) |
||
| 21 | { |
||
| 22 | $this->items = new Collection($items); |
||
| 23 | } |
||
| 24 | |||
| 25 | public static function make(array $items = []): self |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Returns an array with all locals paths of the Media items. |
||
| 32 | */ |
||
| 33 | public function getLocalPaths(): array |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Returns an array with all headers of the Media items. |
||
| 40 | */ |
||
| 41 | public function getHeaders(): array |
||
| 46 | } |
||
| 47 | |||
| 48 | public function collection(): Collection |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Count the number of items in the collection. |
||
| 55 | * |
||
| 56 | * @return int |
||
| 57 | */ |
||
| 58 | public function count(): int |
||
| 59 | { |
||
| 60 | return $this->items->count(); |
||
| 61 | } |
||
| 62 | |||
| 63 | public function __call($method, $parameters) |
||
| 66 | } |
||
| 67 | } |
||
| 68 |