Completed
Push — master ( 874a77...cf2f4d )
by mw
01:48
created

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
crap 1
1
<?php
2
3
namespace Onoi\CallbackContainer\Exception;
4
5
use RuntimeException;
6
7
/**
8
 * @license GNU GPL v2+
9
 * @since 2.0
10
 *
11
 * @author mwjames
12
 */
13
class ServiceAliasCrossAssignmentException extends RuntimeException {
14
15
	/**
16
	 * @since 2.0
17
	 *
18
	 * @param string $service
19
	 * @param string $alias
20
	 * @param string $assignedService
21
	 */
22 1
	public function __construct( $service, $alias, $assignedService ) {
23 1
		parent::__construct( "{$alias} alias cannot be reassigned to the {$service} service as it has already been assigned to {$assignedService}." );
24 1
	}
25
26
}
27