@@ -48,6 +48,9 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | protected $all_devices = []; |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @param string $access_token |
|
| 53 | + */ |
|
| 51 | 54 | public function __construct($access_token = null, Connection $connection = null) |
| 52 | 55 | { |
| 53 | 56 | $access_token = $access_token ?: getenv('pushbullet.access_token'); |
@@ -225,6 +228,9 @@ discard block |
||
| 225 | 228 | return $args; |
| 226 | 229 | } |
| 227 | 230 | |
| 231 | + /** |
|
| 232 | + * @param \Psr\Http\Message\ResponseInterface $response |
|
| 233 | + */ |
|
| 228 | 234 | protected function fromJson($response) |
| 229 | 235 | { |
| 230 | 236 | return json_decode((string) $response->getBody(), true); |
@@ -92,6 +92,9 @@ |
||
| 92 | 92 | return array_merge($vars, $standard); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param string $type |
|
| 97 | + */ |
|
| 95 | 98 | protected function getDevice($type) |
| 96 | 99 | { |
| 97 | 100 | $devices = [ |