Completed
Push — master ( 53226a...7ab116 )
by Jean
04:42 queued 02:24
created

TargetAlreadyDefinedException   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
 * TargetAlreadyDefinedException
4
 *
5
 * @package php-deferred-callchain
6
 * @author  Jean Claveau
7
 */
8
namespace JClaveau\Async\Exceptions;
9
use       LogicException;
10
11
/**
12
 */
13
class TargetAlreadyDefinedException extends LogicException
14
{
15
    public function __construct($callchain, $expected_target, $target)
16
    {
17
        $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);
18
    }
19
    
20
    /**/
21
}
22