예제 #1
0
 /**
  * Test:: Getting known model
  *
  * @covers \Phue\LightModel\LightModelFactory::build
  */
 public function testGetKnownModel()
 {
     $this->assertInstanceOf('\\Phue\\LightModel\\ModelLst001', LightModelFactory::build('LST001'));
 }
예제 #2
0
파일: Light.php 프로젝트: Mahlstrom/Phue
 /**
  * Get model
  *
  * @return AbstractLightModel Light model
  */
 public function getModel()
 {
     return LightModelFactory::build($this->getModelId());
 }