Phue\Command\SetLightState::getEffectModes PHP Method

getEffectModes() public static method

Get effect modes
public static getEffectModes ( ) : array
return array List of color modes
    public static function getEffectModes()
    {
        return array(self::EFFECT_NONE, self::EFFECT_COLORLOOP);
    }

Usage Example

Example #1
0
 /**
  * Test: Get effect modes
  *
  * @covers \Phue\Command\SetLightState::getEffectModes
  */
 public function testGetEffectModes()
 {
     $this->assertNotEmpty(SetLightState::getEffectModes());
     $this->assertTrue(in_array(SetLightState::EFFECT_NONE, SetLightState::getEffectModes()));
 }