| 1 | <?php |
||
| 12 | class PayboxResponseEvent extends Event |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | private $data; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $account; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var boolean |
||
| 26 | */ |
||
| 27 | private $verified; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Constructor. |
||
| 31 | * |
||
| 32 | * @param array $data |
||
| 33 | * @param string $account |
||
| 34 | * @param boolean $verified |
||
| 35 | */ |
||
| 36 | public function __construct(array $data, $account, $verified = false) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Returns all parameters sent on IPN. |
||
| 45 | * |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | public function getData() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Returns the account in relation with the IPN. |
||
| 55 | * |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getAccount() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Returns true if signature verification was successful. |
||
| 65 | * |
||
| 66 | * @return boolean |
||
| 67 | */ |
||
| 68 | public function isVerified() |
||
| 72 | } |
||
| 73 |