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

AbstractFilter::matches()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
nc 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