UnknownDefinitionException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
c 1
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace DICIT;
4
5
class UnknownDefinitionException extends \RuntimeException
6
{
7
    private $serviceName;
8
9
    /**
10
     * @param string $serviceName
11
     */
12
    public function __construct($serviceName)
13
    {
14
        parent::__construct('Class not configured : ' . $serviceName);
15
16
        $this->serviceName = $serviceName;
17
    }
18
19
    public function getServiceName()
20
    {
21
        return $this->serviceName;
22
    }
23
}
24