1 | <?php |
||
18 | class DeviceCodeResponse extends AbstractResponseType |
||
19 | { |
||
20 | /** |
||
21 | * @var DeviceCodeEntityInterface |
||
22 | */ |
||
23 | protected $deviceCode; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $payload; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 1 | public function generateHttpResponse(ResponseInterface $response) |
|
60 | |||
61 | 2 | public function setPayload($payload) |
|
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 2 | public function setDeviceCode(DeviceCodeEntityInterface $deviceCode) |
|
73 | |||
74 | /** |
||
75 | * Add custom fields to your Bearer Token response here, then override |
||
76 | * AuthorizationServer::getResponseType() to pull in your version of |
||
77 | * this class rather than the default. |
||
78 | * |
||
79 | * @param DeviceCodeEntityInterface $deviceCode |
||
80 | * |
||
81 | * @return array |
||
82 | */ |
||
83 | protected function getExtraParams(DeviceCodeEntityInterface $deviceCode) |
||
87 | } |
||
88 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.