UnknownProcedureException   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 33
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A setProcedureName() 0 4 1
A getProcedureName() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Tidal/WampWatch package.
5
 *   (c) 2016 Timo Michna <timomichna/yahoo.de>
6
 *
7
 *  For the full copyright and license information, please view the LICENSE
8
 *  file that was distributed with this source code.
9
 *
10
 */
11
12
namespace Tidal\WampWatch\Exception;
13
14
class UnknownProcedureException extends \OutOfBoundsException
15
{
16
    /**
17
     * @var string name of the procedure
18
     */
19
    protected $procedureName;
20
21
    /**
22
     * @param string $procedureName
23
     */
24
    public function __construct($procedureName)
25
    {
26
        $this->setprocedureName($procedureName);
27
28
        parent::__construct("unknown procedure '$procedureName'");
29
    }
30
31
    /**
32
     * @param string $procedureName
33
     */
34
    protected function setProcedureName($procedureName)
35
    {
36
        $this->procedureName = $procedureName;
37
    }
38
39
    /**
40
     * @return string the procedure name
41
     */
42
    public function getProcedureName()
43
    {
44
        return $this->procedureName;
45
    }
46
}
47