Completed
Push — master ( 49cea0...b2ab19 )
by Harry
02:41
created

AbstractFilter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 19
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
matches() 0 1 ?
1
<?php
2
3
namespace Graze\ArrayFilter;
4
5
abstract class AbstractFilter implements ArrayFilterInterface
6
{
7
    /**
8
     * Invoke this filter
9
     *
10
     * @param array $data
11
     *
12
     * @return bool
13
     */
14
    public function __invoke(array $data)
15
    {
16
        return $this->matches($data);
17
    }
18
19
    /**
20
     * @inheritdoc
21
     */
22
    abstract public function matches(array $data);
23
}
24