| 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\Event; |
||
| 13 | |||
| 14 | use WBW\Library\HaveIBeenPwned\Request\DataClassesRequest; |
||
| 15 | use WBW\Library\HaveIBeenPwned\Response\DataClassesResponse; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Data classes event. |
||
| 19 | * |
||
| 20 | * @author webeweb <https://github.com/webeweb> |
||
| 21 | * @package WBW\Bundle\HaveIBeenPwnedBundle\Event |
||
| 22 | */ |
||
| 23 | class DataClassesEvent extends AbstractEvent { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Event name. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | const EVENT_NAME = "wbw.haveibeenpwned.event.data_classes"; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Constructor. |
||
| 34 | */ |
||
| 35 | public function __construct() { |
||
| 36 | parent::__construct(self::EVENT_NAME); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get the data classes request. |
||
| 41 | * |
||
| 42 | * @return DataClassesRequest|null Returns the data classes request. |
||
| 43 | */ |
||
| 44 | public function getRequest(): ?DataClassesRequest { |
||
| 45 | return parent::getRequest(); |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get the data classes response. |
||
| 50 | * |
||
| 51 | * @return DataClassesResponse|null Returns the data classes response. |
||
| 52 | */ |
||
| 53 | public function getResponse(): ?DataClassesResponse { |
||
| 54 | return parent::getResponse(); |
||
|
0 ignored issues
–
show
|
|||
| 55 | } |
||
| 56 | } |
||
| 57 |