* Thrown when applying a deferred call chain on a target which doesn't
15
* implement the expected interface.
16
*/
17
class BadTargetInterfaceException extends LogicException
18
{
19
/**
20
* Constructor.
21
*
22
* @param DeferredCallChain $callchain
23
* @param mixed $expected_target The expected interface
24
* @param mixed $target
25
*/
26
public function __construct(DeferredCallChain $callchain, $expected_target, $target)
27
{
28
$this->message = "You are trying to define a target of class " . get_class($target) . " for the {$callchain} allowing only targets implementing " . $expected_target;