Completed
Push — master ( ce6f95...09fff3 )
by Roberts
05:17 queued 36s
created

DataSetExport::setItems()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Arbory\Base\Admin\Exports;
4
5
use Illuminate\Support\Collection;
6
7
class DataSetExport extends Collection
8
{
9
    /**
10
     * @var Collection
11
     */
12
    protected $items;
13
14
    /**
15
     * DataSetExport constructor.
16
     * @param Collection $items
17
     */
18
    public function __construct(Collection $items)
19
    {
20
        $this->items = $items;
21
    }
22
23
    /**
24
     * @return Collection
25
     */
26
    public function getItems(): Collection
27
    {
28
        return $this->items;
29
    }
30
31
    /**
32
     * @param Collection $items
33
     * @return DataSetExport
34
     */
35
    public function setItems(Collection $items): DataSetExport
36
    {
37
        $this->items = $items;
38
39
        return $this;
40
    }
41
}
42