| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class BreachEvent extends AbstractEvent { |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Event name. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | const EVENT_NAME = "wbw.haveibeenpwned.event.breach"; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor. |
||
| 35 | * |
||
| 36 | * @param BreachInterface $entity The breach. |
||
| 37 | */ |
||
| 38 | public function __construct(BreachInterface $entity) { |
||
| 39 | parent::__construct(self::EVENT_NAME, $entity); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the breach. |
||
| 44 | * |
||
| 45 | * @return BreachInterface Returns the breach. |
||
| 46 | */ |
||
| 47 | public function getBreach(): BreachInterface { |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Get the breach request. |
||
| 53 | * |
||
| 54 | * @return BreachRequest|null Returns the breach request. |
||
| 55 | */ |
||
| 56 | public function getRequest(): ?BreachRequest { |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Get the breach response. |
||
| 62 | * |
||
| 63 | * @return BreachesResponse|null Returns the breaches response. |
||
| 64 | */ |
||
| 65 | public function getResponse(): ?BreachesResponse { |
||
| 67 | } |
||
| 68 | } |
||
| 69 |