Skip to content

Commit 78c7e94

Browse files
committed
Add missing method to transport interface
1 parent 1fef2ac commit 78c7e94

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

library/Phue/Transport/TransportInterface.php

+15-7
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,22 @@ interface TransportInterface
3737
/**
3838
* Send request
3939
*
40-
* @param string $path
41-
* API path
42-
* @param string $method
43-
* Request method
44-
* @param \stdClass $data
45-
* Body data
40+
* @param string $address API path
41+
* @param string $method Request method
42+
* @param \stdClass $body Body data
4643
*
4744
* @return mixed Command result
4845
*/
49-
public function sendRequest($path, $method = self::METHOD_GET, \stdClass $data = null);
46+
public function sendRequest($address, $method = self::METHOD_GET, \stdClass $body = null);
47+
48+
/**
49+
* Send request, bypass body validation
50+
*
51+
* @param string $address API path
52+
* @param string $method Request method
53+
* @param \stdClass $body Body data
54+
*
55+
* @return mixed Command result
56+
*/
57+
public function sendRequestBypassBodyValidation($address, $method = self::METHOD_GET, \stdClass $body = null);
5058
}

0 commit comments

Comments
 (0)