UnknownDefinitionException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 19
c 1
b 0
f 0
wmc 2
lcom 0
cbo 0
rs 10

2 Methods

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