Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
20 | 1 | public function __construct( |
|
21 | base\Behavior $behavior, |
||
22 | string $targetClass, |
||
23 | int $code = 0, |
||
24 | Throwable $previous = null |
||
25 | ) { |
||
26 | 1 | $message = get_class($behavior) . " can be applied only to {$targetClass}"; |
|
27 | 1 | parent::__construct($message, $code, $previous); |
|
28 | |||
29 | 1 | $this->behavior = $behavior; |
|
30 | 1 | $this->targetClass = $targetClass; |
|
31 | 1 | } |
|
32 | |||
43 |