1 | <?php |
||
31 | 1 | final class OnResponseHandler |
|
32 | { |
||
33 | /** |
||
34 | * @var bool |
||
35 | */ |
||
36 | private $needModifyResponse = FALSE; |
||
37 | |||
38 | /** |
||
39 | * @var DeviceView |
||
40 | */ |
||
41 | private $deviceView; |
||
42 | |||
43 | /** |
||
44 | * @var \Closure |
||
45 | */ |
||
46 | public $modifyResponseClosure; |
||
47 | |||
48 | /** |
||
49 | * @param DeviceView $deviceView |
||
50 | */ |
||
51 | public function __construct(DeviceView $deviceView) |
||
55 | |||
56 | /** |
||
57 | * Stores information about modifying response |
||
58 | * |
||
59 | * @return void |
||
60 | */ |
||
61 | public function needModifyResponse() : void |
||
65 | |||
66 | /** |
||
67 | * @param Application\Application $application |
||
68 | * |
||
69 | * @return void |
||
70 | */ |
||
71 | public function __invoke(Application\Application $application) : void |
||
78 | } |
||
79 |