1 | <?php |
||
11 | class TokenUsedEvent extends Event |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $purpose; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $value; |
||
22 | |||
23 | /** |
||
24 | * @param string $purpose The token purpose |
||
25 | * @param string $value The token value |
||
26 | */ |
||
27 | 1 | public function __construct($purpose, $value) |
|
32 | |||
33 | /** |
||
34 | * The token purpose |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | 1 | public function getPurpose() |
|
42 | |||
43 | /** |
||
44 | * The token value |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | 1 | public function getValue() |
|
52 | } |
||
53 |