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