1 | <?php |
||
14 | class OnAssembleResponseEvent extends Event |
||
15 | { |
||
16 | /** |
||
17 | * @var CredentialException |
||
18 | */ |
||
19 | private $exception; |
||
20 | |||
21 | /** |
||
22 | * @var null|object |
||
23 | */ |
||
24 | private $user; |
||
25 | |||
26 | /** |
||
27 | * @var JsonResponse |
||
28 | */ |
||
29 | private $response; |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | * |
||
34 | * @param object $user |
||
35 | * @param CredentialException $exception |
||
36 | */ |
||
37 | 14 | public function __construct($user = null, CredentialException $exception = null) |
|
42 | |||
43 | /** |
||
44 | * @return CredentialException |
||
45 | */ |
||
46 | 5 | public function getException() |
|
50 | |||
51 | /** |
||
52 | * @return object |
||
53 | */ |
||
54 | 9 | public function getUser() |
|
58 | |||
59 | /** |
||
60 | * @return bool |
||
61 | */ |
||
62 | 14 | public function isSuccess() |
|
66 | |||
67 | /** |
||
68 | * @return JsonResponse |
||
69 | */ |
||
70 | 14 | public function getResponse() |
|
74 | |||
75 | /** |
||
76 | * @param JsonResponse $response |
||
77 | */ |
||
78 | 14 | public function setResponse(JsonResponse $response) |
|
82 | } |
||
83 |