/**
* Send command
*
* @param Client $client
* Phue Client
*
* @return Light[] List of Light objects
*/
public function send(Client $client)
{
// Get response
$response = $client->getTransport()->sendRequest("/api/{$client->getUsername()}/lights");
$lights = array();
foreach ($response as $lightId => $attributes) {
$lights[$lightId] = new Light($lightId, $attributes, $client);
}
return $lights;
}