Completed
Push — master ( d27a4c...d0eef7 )
by Sergii
01:51
created

FileCollection::clearIndex()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
c 1
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Tests\AppBundle\Mock;
3
4
class FileCollection extends \AppBundle\Sync\Entity\FileCollection
5
{
6
    public function clearIndexKeys()
7
    {
8
        foreach ($this->index as $key => &$value) {
9
            $value = [];
10
        }
11
    }
12
13
    public function clearIndex()
14
    {
15
        $this->index = [];
16
    }
17
}
18