Completed
Push — master ( dac9d4...d53965 )
by Timo
38s
created

UnknownProcedureException   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

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
namespace Tidal\WampWatch\Exception;
12
13
class UnknownProcedureException extends \OutOfBoundsException
14
{
15
    /**
16
     * @var string name of the procedure
17
     */
18
    protected $procedureName;
19
20
    /**
21
     * @param string $procedureName
22
     */
23
    public function __construct($procedureName)
24
    {
25
        $this->setprocedureName($procedureName);
26
27
        parent::__construct("unknown procedure '$procedureName'");
28
    }
29
30
    /**
31
     * @param string $procedureName
32
     */
33
    protected function setProcedureName($procedureName)
34
    {
35
        $this->procedureName = $procedureName;
36
    }
37
38
    /**
39
     * @return string the procedure name
40
     */
41
    public function getProcedureName()
42
    {
43
        return $this->procedureName;
44
    }
45
}
46