Пример #1
0
 /**
  * Test:: Getting known model
  *
  * @covers \Phue\LightModel\LightModelFactory::build
  */
 public function testGetKnownModel()
 {
     $this->assertInstanceOf('\\Phue\\LightModel\\ModelLst001', LightModelFactory::build('LST001'));
 }
Пример #2
0
 /**
  * Get model
  *
  * @return AbstractLightModel Light model
  */
 public function getModel()
 {
     return LightModelFactory::build($this->getModelId());
 }