MailView::canHandle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * BrightNucleus ChainMail Component.
4
 *
5
 * @package   BrightNucleus/ChainMail
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\ChainMail\View;
13
14
use BrightNucleus\View\View\AbstractView;
15
16
/**
17
 * Class MailView.
18
 *
19
 * @since   1.0.0
20
 *
21
 * @package BrightNucleus\ChainMail\View
22
 * @author  Alain Schlesser <[email protected]>
23
 */
24
class MailView extends AbstractView
25
{
26
27
    /**
28
     * Check whether the Findable can handle an individual criterion.
29
     *
30
     * @since 0.1.0
31
     *
32
     * @param mixed $criterion Criterion to check.
33
     *
34
     * @return bool Whether the Findable can handle the criterion.
35
     */
36
    public function canHandle($criterion)
37
    {
38
        return $criterion === $this->uri;
39
    }
40
}
41