PHP Class Phue\Command\SetLightName

Inheritance: implements Phue\Command\CommandInterface
Show file Open project: sqmk/phue Class Usage Examples

Protected Properties

Property Type Description
$lightId string Light Id
$name string New name

Public Methods

Method Description
__construct ( mixed $light, string $name ) Constructs a command
send ( Client $client ) Send command

Method Details

__construct() public method

Constructs a command
public __construct ( mixed $light, string $name )
$light mixed Light Id or Light object
$name string Name of light

send() public method

Send command
public send ( Client $client )
$client Phue\Client Phue Client

Property Details

$lightId protected property

Light Id
protected string $lightId
return string

$name protected property

New name
protected string $name
return string