ArrayQuery   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getHandlerFactory() 0 4 1
A count() 0 4 1
1
<?php
2
3
namespace Nayjest\Querying;
4
5
use Nayjest\Querying\Handler\PhpArray\Factory;
6
7
class ArrayQuery extends AbstractQuery
8
{
9 5
    protected function getHandlerFactory()
10
    {
11 5
        return new Factory();
12
    }
13
14 1
    public function count()
15
    {
16 1
        return count($this->getArray());
17
    }
18
}
19