PHP Class Phue\Command\CreateScene

Inheritance: implements Phue\Command\CommandInterface
Afficher le fichier Open project: sqmk/phue Class Usage Examples

Protected Properties

Свойство Type Description
$lights Lights
$name string Name
$transitionTime mixed Transition time

Méthodes publiques

Méthode Description
__construct ( string $id, string $name, array $lights = [] ) Constructs a command
id ( string $id ) : self Set id
lights ( array $lights = [] ) : self Set lights
name ( string $name ) : self Set name
send ( Client $client ) : string Send command
transitionTime ( double $seconds ) : self Set transition time

Method Details

__construct() public méthode

Constructs a command
public __construct ( string $id, string $name, array $lights = [] )
$id string Id
$name string Name
$lights array List of light Ids or Light objects

id() public méthode

Set id
public id ( string $id ) : self
$id string Custom scene id
Résultat self This object

lights() public méthode

Set lights
public lights ( array $lights = [] ) : self
$lights array List of light Ids or Light objects
Résultat self This object

name() public méthode

Set name
public name ( string $name ) : self
$name string Name
Résultat self This object

send() public méthode

Send command
public send ( Client $client ) : string
$client Phue\Client Phue Client
Résultat string Scene Id

transitionTime() public méthode

Set transition time
public transitionTime ( double $seconds ) : self
$seconds double Time in seconds
Résultat self This object

Property Details

$lights protected_oe property

Lights
protected $lights

$name protected_oe property

Name
protected string $name
Résultat string

$transitionTime protected_oe property

Transition time
protected mixed $transitionTime
Résultat mixed