ServiceTypeMismatchException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 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 ServiceTypeMismatchException extends RuntimeException {
14
15
	/**
16
	 * @since 2.0
17
	 *
18
	 * @param string $service
19
	 * @param string $expectedType
20
	 * @param string $actualType
21
	 */
22 1
	public function __construct( $service, $expectedType, $actualType ) {
23 1
		parent::__construct( "Expected " . $expectedType . " type for {$service} but it did not match " . $actualType );
24 1
	}
25
26
}
27