* Thrown when applying a deferred call chain on a target which is already
15
* defined.
16
*/
17
class TargetAlreadyDefinedException extends LogicException
18
{
19
/**
20
* Constructor.
21
*
22
* @param DeferredCallChain $callchain
23
* @param mixed $expected_target The target instance
24
* @param mixed $target
25
*/
26
public function __construct(DeferredCallChain $callchain, $expected_target, $target)
27
{
28
$this->message = "You are trying to define the target " . spl_object_id($target) . " for the {$callchain} which already has one: " . spl_object_id($expected_target);