SinkFilter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A filter() 0 4 1
1
<?php
2
3
/**
4
 * @file
5
 * Grafizzi\Graph\Filter\SinkFilter: a component of the Grafizzi library.
6
 *
7
 * (c) 2012 Frédéric G. MARAND <[email protected]>
8
 *
9
 * Grafizzi is free software: you can redistribute it and/or modify it under the
10
 * terms of the GNU Lesser General Public License as published by the Free
11
 * Software Foundation, either version 3 of the License, or (at your option) any
12
 * later version.
13
 *
14
 * Grafizzi is distributed in the hope that it will be useful, but WITHOUT ANY
15
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16
 * A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
17
 * details.
18
 *
19
 * You should have received a copy of the GNU Lesser General Public License
20
 * along with Grafizzi, in the COPYING.LESSER.txt file.  If not, see
21
 * <http://www.gnu.org/licenses/>
22
 */
23
24
namespace Grafizzi\Graph\Filter;
25
26
use Grafizzi\Graph\Filter\FilterInterface;
27
use Grafizzi\Graph\Filter\AbstractFilter;
28
29
/**
30
 * A trivial filter example that drops anything it receives.
31
 */
32
class SinkFilter extends AbstractFilter implements FilterInterface {
33
34
  /**
35
   * {@inheritdoc}
36
   */
37 2
  public function filter($input) {
38 2
    $ret = array(null, null);
39 2
    return $ret;
40
  }
41
}
42