PHP Class Phue\User

Mostrar archivo Open project: sqmk/phue

Protected Properties

Property Type Description
$attributes stdClass Attributes
$client Client Phue client
$username string Username

Public Methods

Method Description
__construct ( string $username, stdClass $attributes, Client $client ) Construct a User object
__toString ( ) : string __toString
delete ( ) Delete user
getCreateDate ( ) : string Get create date
getDeviceType ( ) : string Get device type
getLastUseDate ( ) : string Get last use date
getUsername ( ) : string Get username

Method Details

__construct() public method

Construct a User object
public __construct ( string $username, stdClass $attributes, Client $client )
$username string Username
$attributes stdClass User attributes
$client Client Phue client

__toString() public method

__toString
public __toString ( ) : string
return string Username

delete() public method

Delete user
public delete ( )

getCreateDate() public method

Get create date
public getCreateDate ( ) : string
return string Create date

getDeviceType() public method

Get device type
public getDeviceType ( ) : string
return string Device type

getLastUseDate() public method

Get last use date
public getLastUseDate ( ) : string
return string Last use date

getUsername() public method

Get username
public getUsername ( ) : string
return string Username

Property Details

$attributes protected_oe property

Attributes
protected stdClass $attributes
return stdClass

$client protected_oe property

Phue client
protected Client,phue $client
return Client

$username protected_oe property

Username
protected string $username
return string