@@ -366,7 +366,7 @@ |
||
366 | 366 | /** |
367 | 367 | * Send command to server |
368 | 368 | * |
369 | - * @param CommandInterface $command Phue command |
|
369 | + * @param Commands\CommandInterface $command Phue command |
|
370 | 370 | * |
371 | 371 | * @return mixed Command result |
372 | 372 | */ |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Redbox\Twitch; |
3 | -use Redbox\Twitch\Transport\TransportInterface; |
|
4 | -use Redbox\Twitch\Transport\HttpRequest; |
|
5 | -use Redbox\Twitch\Transport\Http; |
|
6 | -use Redbox\Twitch\Commands; |
|
7 | 3 | use Redbox\Twitch\Auth\AuthModel; |
4 | +use Redbox\Twitch\Commands; |
|
5 | +use Redbox\Twitch\Transport\Http; |
|
6 | +use Redbox\Twitch\Transport\HttpRequest; |
|
7 | +use Redbox\Twitch\Transport\TransportInterface; |
|
8 | 8 | |
9 | 9 | class Client |
10 | 10 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | use Redbox\Twitch\Client; |
5 | 5 | use Redbox\Twitch\Error; |
6 | 6 | |
7 | -use Redbox\Twitch\Transport\TransportInterface; |
|
8 | 7 | use Redbox\Twitch\Transport\HttpRequest; |
9 | 8 | |
10 | 9 | class RequestAccessToken implements CommandInterface |
@@ -84,6 +84,9 @@ |
||
84 | 84 | return false; |
85 | 85 | } |
86 | 86 | |
87 | + /** |
|
88 | + * @param string $method |
|
89 | + */ |
|
87 | 90 | public function call($method, $arguments = array()) |
88 | 91 | { |
89 | 92 | if ($this->validate_arguments($method, $arguments) == true) |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Redbox\Twitch\Resource; |
3 | -use Redbox\Twitch\Exception; |
|
4 | 3 | use Redbox\Twitch\Client; |
4 | +use Redbox\Twitch\Exception; |
|
5 | 5 | use Redbox\Twitch\Transport\HttpRequest; |
6 | 6 | |
7 | 7 | class ResourceAbstract |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Redbox\Twitch\Transport; |
3 | +use Redbox\Twitch\Client; |
|
3 | 4 | use Redbox\Twitch\Exception; |
4 | -use Redbox\Twitch\Transport\Adapter\Curl as DefaultAdapter; |
|
5 | 5 | use Redbox\Twitch\Transport\Adapter; |
6 | -use Redbox\Twitch\Client; |
|
6 | +use Redbox\Twitch\Transport\Adapter\Curl as DefaultAdapter; |
|
7 | 7 | |
8 | 8 | class Http implements TransportInterface |
9 | 9 | { |