Completed
Push — master ( ffb65a...cd6af5 )
by mw
01:39
created

EventNotDispatchableException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

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
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Onoi\EventDispatcher\Exception;
4
5
use RuntimeException;
6
7
/**
8
 * @license GNU GPL v2+
9
 * @since 1.1
10
 *
11
 * @author mwjames
12
 */
13
class EventNotDispatchableException extends RuntimeException {
14
15
	/**
16
	 * @since 1.1
17
	 *
18
	 * @param string $event
19
	 */
20 1
	public function __construct( $event ) {
21 1
		parent::__construct( "Event delegation failed due to missing listeners for the `$event` event!" );
22 1
	}
23
24
}
25