Phue\Command\SetLightState::getAlertModes PHP Method

getAlertModes() public static method

Get alert modes
public static getAlertModes ( ) : array
return array List of alert modes
    public static function getAlertModes()
    {
        return array(self::ALERT_NONE, self::ALERT_SELECT, self::ALERT_LONG_SELECT);
    }

Usage Example

Example #1
0
 /**
  * Test: Get alert modes
  *
  * @covers \Phue\Command\SetLightState::getAlertModes
  */
 public function testGetAlertModes()
 {
     $this->assertNotEmpty(SetLightState::getAlertModes());
     $this->assertTrue(in_array(SetLightState::ALERT_SELECT, SetLightState::getAlertModes()));
 }