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

TargetAlreadyDefinedException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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