ValidationException::getKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Comfort\Exception;
3
4
use Exception;
5
6
class ValidationException extends DiscomfortException
7
{
8
    /**
9
     * @var string
10
     */
11
    private $key;
12
13
    public function __construct($key, $message, $code = 0, Exception $previous = null)
14
    {
15
        parent::__construct($message, $code, $previous);
16
        $this->key = $key;
17
    }
18
19
    /**
20
     * @return string
21
     */
22
    public function getKey()
23
    {
24
        return $this->key;
25
    }
26
}
27