UnknownProcedureException::getProcedureName()   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
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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