1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the smsmode-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\SmsModeBundle\Tests\Fixtures\Event; |
13
|
|
|
|
14
|
|
|
use WBW\Bundle\SmsModeBundle\Event\AbstractEvent; |
15
|
|
|
use WBW\Library\SmsMode\Entity\SmsModeEntityInterface; |
16
|
|
|
use WBW\Library\SmsMode\Request\AbstractRequest; |
17
|
|
|
use WBW\Library\SmsMode\Response\AbstractResponse; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* Test sMsmode event. |
21
|
|
|
* |
22
|
|
|
* @author webeweb <https://github.com/webeweb> |
23
|
|
|
* @package WBW\Bundle\SmsModeBundle\Tests\Fixtures\Event |
24
|
|
|
*/ |
25
|
|
|
class TestEvent extends AbstractEvent { |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* {@inheritDoc} |
29
|
|
|
*/ |
30
|
|
|
public function __construct(string $eventName, ?SmsModeEntityInterface $entity) { |
31
|
|
|
parent::__construct($eventName, $entity); |
32
|
|
|
} |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* {@inheritDoc} |
36
|
|
|
*/ |
37
|
|
|
public function getEntity(): ?SmsModeEntityInterface { |
38
|
|
|
return parent::getEntity(); |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* {@inheritDoc} |
43
|
|
|
*/ |
44
|
|
|
public function getRequest(): ?AbstractRequest { |
45
|
|
|
return parent::getRequest(); |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* {@inheritDoc} |
50
|
|
|
*/ |
51
|
|
|
public function getResponse(): ?AbstractResponse { |
52
|
|
|
return parent::getResponse(); |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* {@inheritDoc} |
57
|
|
|
*/ |
58
|
|
|
public function setEntity(?SmsModeEntityInterface $entity): AbstractEvent { |
59
|
|
|
return parent::setEntity($entity); |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* {@inheritDoc} |
64
|
|
|
*/ |
65
|
|
|
public function setRequest(?AbstractRequest $request): AbstractEvent { |
66
|
|
|
return parent::setRequest($request); |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* {@inheritDoc} |
71
|
|
|
*/ |
72
|
|
|
public function setResponse(?AbstractResponse $response): AbstractEvent { |
73
|
|
|
return parent::setResponse($response); |
74
|
|
|
} |
75
|
|
|
} |
76
|
|
|
|