Passed
Push — master ( 3e286c...15544c )
by
02:44 queued 10s
created

DerailException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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 DerailException extends \Exception
20
{
21
    /**
22
     * @var AbstractCommand
23
     */
24
    public $command;
25
26
    public function __construct(AbstractCommand $command, $code = 0, $previous = null)
27
    {
28
        $this->command = $command;
29
30
        parent::__construct('', $code, $previous);
31
    }
32
}
33