Passed
Pull Request — master (#12)
by
02:33
created

InterruptException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 4
1
<?php
2
3
/*
4
 * This file is part of the LineMob package.
5
 *
6
 * (c) Ishmael Doss <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace LineMob\Core\Exception;
13
14
use LineMob\Core\Command\AbstractCommand;
15
16
/**
17
 * @author Ishmael Doss <[email protected]>
18
 */
19
class InterruptException extends \Exception
20
{
21
    /**
22
     * @var AbstractCommand
23
     */
24
    public $command;
25
    public $handler;
26
27
    public function __construct(AbstractCommand $command, $handler, $code = 0, $previous = null)
28
    {
29
        $this->command = $command;
30
        $this->handler = $handler;
31
32
        parent::__construct('', $code, $previous);
33
    }
34
}
35