Completed
Push — master ( ad217e...00bfa4 )
by Daniel
10s
created

UnknownEventName::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
4
namespace Mleko\Narrator\Bundle\DependencyInjection\Compiler;
5
6
7
class UnknownEventName extends \RuntimeException
8
{
9
10
    /**
11
     * UnknownEventName constructor.
12
     * @param string $serviceId
13
     */
14 3
    public function __construct($serviceId)
15
    {
16 3
        parent::__construct(sprintf("Unknown event name for listener: `%s`, `narrator.listener` tag don't have an `event` attribute and event name could't be inferred", $serviceId));
17 3
    }
18
}
19