Completed
Push — master ( 89ec3c...2cd44b )
by WEBEWEB
01:09
created

BreachedAccountEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 27
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getRequest() 0 3 1
A getResponse() 0 3 1
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\Model\Request\BreachedAccountRequest;
15
use WBW\Library\HaveIBeenPwned\Model\Response\BreachesResponse;
16
17
/**
18
 * Breached account event.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Bundle\HaveIBeenPwnedBundle\Event
22
 */
23
class BreachedAccountEvent extends AbstractHaveIBeenPwnedEvent {
24
25
    /**
26
     * Constructor.
27
     */
28
    public function __construct() {
29
        parent::__construct(HaveIBeenPwnedEvents::BREACHED_ACCOUNT, null);
30
    }
31
32
    /**
33
     * Get the breached account request.
34
     *
35
     * @return BreachedAccountRequest Returns the breached account request.
36
     */
37
    public function getRequest() {
38
        return parent::getRequest();
39
    }
40
41
    /**
42
     * Get the breaches response.
43
     *
44
     * @return BreachesResponse Returns the breaches response.
45
     */
46
    public function getResponse() {
47
        return parent::getResponse();
48
    }
49
}
50