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

UnknownProcedureException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 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