Completed
Push — master ( 113f03...98806f )
by Yann
06:47
created

TokenExpiredEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 1

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getPurpose() 0 4 1
A getValue() 0 4 1
1
<?php
2
3
namespace Yokai\SecurityTokenBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
/**
8
 * @author Yann Eugoné <[email protected]>
9
 */
10
class TokenExpiredEvent extends Event
11
{
12
    /**
13
     * @var string
14
     */
15
    private $purpose;
16
17
    /**
18
     * @var string
19
     */
20
    private $value;
21
22
    /**
23
     * @param string $purpose
24
     * @param string $value
25
     */
26 1
    public function __construct($purpose, $value)
27
    {
28 1
        $this->purpose = $purpose;
29 1
        $this->value = $value;
30 1
    }
31
32
    /**
33
     * @return string
34
     */
35 1
    public function getPurpose()
36
    {
37 1
        return $this->purpose;
38
    }
39
40
    /**
41
     * @return string
42
     */
43 1
    public function getValue()
44
    {
45 1
        return $this->value;
46
    }
47
}
48