InExpression   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A match() 0 4 1
1
<?php
2
3
namespace Mattbit\Flat\Query\Expression\Leaf;
4
5
use Mattbit\Flat\Model\DocumentInterface;
6
7
class InExpression extends Expression
8
{
9 1
    public function match(DocumentInterface $document)
10
    {
11 1
        return in_array($this->getValue($document), $this->reference);
12
    }
13
}
14