Phue\Command\CommandInterface::send PHP Method

send() public method

Send command
public send ( Client $client ) : mixed
$client Phue\Client Phue Client
return mixed
    public function send(Client $client);

Usage Example

Example #1
0
File: Client.php Project: sqmk/phue
 /**
  * Send command to server
  *
  * @param CommandInterface $command
  *            Phue command
  *
  * @return mixed Command result
  */
 public function sendCommand(CommandInterface $command)
 {
     return $command->send($this);
 }
CommandInterface