Total Complexity | 5 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class MediaCollection |
||
12 | { |
||
13 | use ForwardsCalls; |
||
14 | |||
15 | private Collection $items; |
||
16 | |||
17 | public function __construct(array $items = []) |
||
18 | { |
||
19 | $this->items = new Collection($items); |
||
20 | } |
||
21 | |||
22 | public static function make(array $items = []): self |
||
23 | { |
||
24 | return new static($items); |
||
25 | } |
||
26 | |||
27 | public function getLocalPaths(): array |
||
28 | { |
||
29 | return $this->items->map->getLocalPath()->all(); |
||
30 | } |
||
31 | |||
32 | public function collection(): Collection |
||
33 | { |
||
34 | return $this->items; |
||
35 | } |
||
36 | |||
37 | public function __call($method, $parameters) |
||
40 | } |
||
41 | } |
||
42 |