PHP 클래스 Phue\Command\CreateSensor

상속: implements Phue\Command\CommandInterface
파일 보기 프로젝트 열기: sqmk/phue 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes array Sensor attributes
$config array Config
$state array Sensor state

공개 메소드들

메소드 설명
__construct ( string $name = null ) Constructs a command
configAttribute ( string $key, mixed $value ) : self Config attribute
manufacturerName ( string $manufacturerName ) : self Set manufacturer name
modelId ( string $modelId ) : self Set model Id
name ( string $name ) : self Set name
send ( Client $client ) : integer Send command
softwareVersion ( string $softwareVersion ) : self Set software version
stateAttribute ( string $key, mixed $value ) : self State attribute
type ( string $type ) : self Set type
uniqueId ( string $uniqueId ) : self Set unique Id

메소드 상세

__construct() 공개 메소드

Constructs a command
public __construct ( string $name = null )
$name string Name

configAttribute() 공개 메소드

Config attribute
public configAttribute ( string $key, mixed $value ) : self
$key string Key
$value mixed Value
리턴 self This object

manufacturerName() 공개 메소드

Set manufacturer name
public manufacturerName ( string $manufacturerName ) : self
$manufacturerName string Manufacturer name
리턴 self This object

modelId() 공개 메소드

Set model Id
public modelId ( string $modelId ) : self
$modelId string Model Id
리턴 self This object

name() 공개 메소드

Set name
public name ( string $name ) : self
$name string Name
리턴 self This object

send() 공개 메소드

Send command
public send ( Client $client ) : integer
$client Phue\Client Phue Client
리턴 integer Sensor Id

softwareVersion() 공개 메소드

Set software version
public softwareVersion ( string $softwareVersion ) : self
$softwareVersion string Software version
리턴 self This object

stateAttribute() 공개 메소드

State attribute
public stateAttribute ( string $key, mixed $value ) : self
$key string Key
$value mixed Value
리턴 self This object

type() 공개 메소드

Set type
public type ( string $type ) : self
$type string Type of sensor
리턴 self This object

uniqueId() 공개 메소드

Set unique Id
public uniqueId ( string $uniqueId ) : self
$uniqueId string Unique Id
리턴 self This object

프로퍼티 상세

$attributes 보호되어 있는 프로퍼티

Sensor attributes
protected array $attributes
리턴 array

$config 보호되어 있는 프로퍼티

Config
protected array $config
리턴 array

$state 보호되어 있는 프로퍼티

Sensor state
protected array $state
리턴 array