Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
41 | 1 | public function __sleep() |
|
42 | { |
||
43 | 1 | $this->aggregator = get_class($this->first()); |
|
44 | |||
45 | $this->items = $this->getSerializedPropertyValue(EloquentCollection::make($this->map(function ($aggregator) { |
||
46 | 1 | return $aggregator->getModel(); |
|
47 | 1 | }))); |
|
48 | |||
49 | 1 | return ['aggregator', 'items']; |
|
50 | } |
||
64 |