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

BaseView::canHandle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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