Passed
Branch dev (8b2306)
by Alex
02:48
created

BadDispatchStrategyException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/**
4
 * Codeburner Framework.
5
 *
6
 * @author Alex Rohleder <[email protected]>
7
 * @copyright 2016 Alex Rohleder
8
 * @license http://opensource.org/licenses/MIT
9
 */
10
11
namespace Codeburner\Router\Exceptions;
12
13
/**
14
 * Exception throwed when the route dispatch strategy
15
 * is not a valid one, strategies must implement the DispatchStrategyInterface.
16
 *
17
 * @author Alex Rohleder <[email protected]>
18
 */
19
20
class BadDispatchStrategyException extends BadRouteException
21
{
22
23
    public function __construct($strategy) {
24
        parent::__construct("`$strategy` is not a valid route dispatch strategy, it must implement the `Codeburner\Router\DispatchStrategies\DispatchStrategyInterface` interface.");
25
    }
26
    
27
}
28