Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
17 | 1 | public function __construct() |
|
18 | { |
||
19 | 1 | parent::__construct(); |
|
20 | |||
21 | 1 | $r = new \ReflectionClass('\Symfony\Component\EventDispatcher\EventDispatcher'); |
|
22 | 1 | $params = $r->getMethod('dispatch')->getParameters(); |
|
23 | 1 | if('event' === $params[0]->getName()){ |
|
24 | 1 | $this->version = '4.3'; |
|
25 | } |
||
42 |