for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the haveibeenpwned-bundle package.
*
* (c) 2019 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\HaveIBeenPwnedBundle\Event;
use WBW\Library\HaveIBeenPwned\Entity\BreachInterface;
use WBW\Library\HaveIBeenPwned\Model\Request\BreachRequest;
use WBW\Library\HaveIBeenPwned\Model\Response\BreachesResponse;
/**
* Breach event.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Bundle\HaveIBeenPwnedBundle\Event
class BreachEvent extends AbstractEvent {
* Constructor.
* @param BreachInterface $entity The breach.
public function __construct(BreachInterface $entity) {
parent::__construct(HaveIBeenPwnedEvents::BREACH, $entity);
}
* Get the breach.
* @return BreachInterface Returns the breach.
public function getBreach() {
return $this->getEntity();
* Get the breach request.
* @return BreachRequest Returns the breach request.
public function getRequest() {
return parent::getRequest();
* Get the breach response.
* @return BreachesResponse Returns the breaches response.
public function getResponse() {
return parent::getResponse();