Skip to content

Commit

Permalink
Add missing method to transport interface
Browse files Browse the repository at this point in the history
  • Loading branch information
sqmk committed Dec 1, 2017
1 parent 1fef2ac commit 78c7e94
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions library/Phue/Transport/TransportInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,22 @@ interface TransportInterface
/**
* Send request
*
* @param string $path
* API path
* @param string $method
* Request method
* @param \stdClass $data
* Body data
* @param string $address API path
* @param string $method Request method
* @param \stdClass $body Body data
*
* @return mixed Command result
*/
public function sendRequest($path, $method = self::METHOD_GET, \stdClass $data = null);
public function sendRequest($address, $method = self::METHOD_GET, \stdClass $body = null);

/**
* Send request, bypass body validation
*
* @param string $address API path
* @param string $method Request method
* @param \stdClass $body Body data
*
* @return mixed Command result
*/
public function sendRequestBypassBodyValidation($address, $method = self::METHOD_GET, \stdClass $body = null);
}

0 comments on commit 78c7e94

Please sign in to comment.