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

FileCollection::clearIndexKeys()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
c 1
b 0
f 0
rs 9.4285
cc 2
eloc 3
nc 2
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