Completed
Push — master ( 67e168...53226a )
by Jean
02:28
created

BadTargetInterfaceException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/**
3
 * BadTargetInterfaceException
4
 *
5
 * @package php-deferred-callchain
6
 * @author  Jean Claveau
7
 */
8
namespace JClaveau\Async\Exceptions;
9
use       LogicException;
10
11
/**
12
 */
13
class BadTargetInterfaceException extends LogicException
14
{
15
    public function __construct($callchain, $expected_target, $target)
16
    {
17
        $this->message = "You are trying to define a target of class ".get_class($target)." for the $callchain allowing only targets implementing ".$expected_target;
18
    }
19
    
20
    /**/
21
}
22