Completed
Push — master ( 8155ff...9fff48 )
by Changwan
03:00
created

TesterNotFoundException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getName() 0 4 1
1
<?php
2
namespace Wandu\Validator\Exception;
3
4
use RuntimeException;
5
6
class TesterNotFoundException extends RuntimeException
7
{
8
    /** @var string */
9
    protected $name;
10
    
11
    public function __construct($name)
12
    {
13
        $this->name = $name;
14
        parent::__construct("tester \"{$name}\" not found.");
15
    }
16
17
    /**
18
     * @return string
19
     */
20
    public function getName()
21
    {
22
        return $this->name;
23
    }
24
}
25