|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* This file is part of the haveibeenpwned-bundle package. |
|
5
|
|
|
* |
|
6
|
|
|
* (c) 2019 WEBEWEB |
|
7
|
|
|
* |
|
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
9
|
|
|
* file that was distributed with this source code. |
|
10
|
|
|
*/ |
|
11
|
|
|
|
|
12
|
|
|
namespace WBW\Bundle\HaveIBeenPwnedBundle\Tests\Fixtures\Event; |
|
13
|
|
|
|
|
14
|
|
|
use WBW\Bundle\HaveIBeenPwnedBundle\Event\AbstractEvent; |
|
15
|
|
|
use WBW\Library\HaveIBeenPwned\Entity\HaveIBeenPwnedEntityInterface; |
|
16
|
|
|
use WBW\Library\HaveIBeenPwned\Request\AbstractRequest; |
|
17
|
|
|
use WBW\Library\HaveIBeenPwned\Response\AbstractResponse; |
|
18
|
|
|
|
|
19
|
|
|
/** |
|
20
|
|
|
* Test HaveIBeenPwned event. |
|
21
|
|
|
* |
|
22
|
|
|
* @author webeweb <https://github.com/webeweb> |
|
23
|
|
|
* @package WBW\Bundle\HaveIBeenPwnedBundle\Tests\Fixtures\Event |
|
24
|
|
|
*/ |
|
25
|
|
|
class TestEvent extends AbstractEvent { |
|
26
|
|
|
|
|
27
|
|
|
/** |
|
28
|
|
|
* {@inheritdoc} |
|
29
|
|
|
*/ |
|
30
|
|
|
public function __construct($eventName, HaveIBeenPwnedEntityInterface $entity = null) { |
|
31
|
|
|
parent::__construct($eventName, $entity); |
|
32
|
|
|
} |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* {@inheritdoc} |
|
36
|
|
|
*/ |
|
37
|
|
|
public function getEntity() { |
|
38
|
|
|
return parent::getEntity(); |
|
39
|
|
|
} |
|
40
|
|
|
|
|
41
|
|
|
/** |
|
42
|
|
|
* {@inheritdoc} |
|
43
|
|
|
*/ |
|
44
|
|
|
public function getRequest() { |
|
45
|
|
|
return parent::getRequest(); |
|
46
|
|
|
} |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* {@inheritdoc} |
|
50
|
|
|
*/ |
|
51
|
|
|
public function getResponse() { |
|
52
|
|
|
return parent::getResponse(); |
|
53
|
|
|
} |
|
54
|
|
|
|
|
55
|
|
|
/** |
|
56
|
|
|
* {@inheritdoc} |
|
57
|
|
|
*/ |
|
58
|
|
|
public function setEntity(HaveIBeenPwnedEntityInterface $entity = null) { |
|
59
|
|
|
return parent::setEntity($entity); |
|
60
|
|
|
} |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* {@inheritdoc} |
|
64
|
|
|
*/ |
|
65
|
|
|
public function setRequest(AbstractRequest $request) { |
|
66
|
|
|
return parent::setRequest($request); |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* {@inheritdoc} |
|
71
|
|
|
*/ |
|
72
|
|
|
public function setResponse(AbstractResponse $response) { |
|
73
|
|
|
return parent::setResponse($response); |
|
74
|
|
|
} |
|
75
|
|
|
} |
|
76
|
|
|
|