Completed
Push — master ( b3b586...874a77 )
by mw
01:51
created

ServiceAliasAssignmentException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
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 ServiceAliasAssignmentException extends RuntimeException {
14
15
	/**
16
	 * @since 2.0
17
	 *
18
	 * @param string $alias
19
	 */
20
	public function __construct( $alias ) {
21
		parent::__construct( "`{$alias}` is already used as service and can therefore not be used as alias." );
22
	}
23
24
}
25