Completed
Push — master ( e02933...197ad6 )
by ARCANEDEV
08:16
created

Collection::reset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 3
b 0
f 0
nc 1
nop 0
dl 0
loc 6
ccs 3
cts 3
cp 1
crap 1
rs 9.4285
1
<?php namespace Arcanedev\Support;
2
3
use Illuminate\Support\Collection as IlluminateCollection;
4
5
/**
6
 * Class     Collection
7
 *
8
 * @package  Arcanedev\Support
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class Collection extends IlluminateCollection
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Custom Functions
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Reset the collection.
19
     *
20
     * @return static
21
     */
22 8
    public function reset()
23
    {
24 8
        $this->items = [];
25
26 8
        return $this;
27
    }
28
}
29