Passed
Push — master ( 373a1b...497e2b )
by Alain
02:37
created

BaseView   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A canHandle() 0 4 1
1
<?php
2
/**
3
 * Bright Nucleus View Component.
4
 *
5
 * @package   BrightNucleus\View
6
 * @author    Alain Schlesser <[email protected]>
7
 * @license   MIT
8
 * @link      http://www.brightnucleus.com/
9
 * @copyright 2016 Alain Schlesser, Bright Nucleus
10
 */
11
12
namespace BrightNucleus\View\View;
13
14
/**
15
 * Class BaseView.
16
 *
17
 * @since   0.1.0
18
 *
19
 * @package BrightNucleus\View\View
20
 * @author  Alain Schlesser <[email protected]>
21
 */
22
class BaseView extends AbstractView
23
{
24
25
    /**
26
     * Check whether the Findable can handle an individual criterion.
27
     *
28
     * @since 0.1.0
29
     *
30
     * @param mixed $criterion Criterion to check.
31
     *
32
     * @return bool Whether the Findable can handle the criterion.
33
     */
34 17
    public function canHandle($criterion)
35
    {
36 17
        return true;
37
    }
38
}
39