TokenEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getToken() 0 3 1
1
<?php
2
namespace gossi\formatter\events;
3
4
use phootwork\tokenizer\Token;
5
use Symfony\Component\EventDispatcher\Event;
6
7
class TokenEvent extends Event {
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\EventDispatcher\Event has been deprecated with message: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
8
9
	private $token;
10
11 10
	public function __construct(Token $token) {
12 10
		$this->token = $token;
13 10
	}
14
15 6
	public function getToken() {
16 6
		return $this->token;
17
	}
18
}
19