MailView   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A canHandle() 0 4 1
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