public static function construct($discovery_complete, array $attributes)
 {
     $frame = new DiscoverAttributesResponseCommand();
     $frame->setDiscoveryComplete($discovery_complete);
     $frame->setAttributes($attributes);
     return $frame;
 }
 public function testSetFrame()
 {
     $frame = new DiscoverAttributesResponseCommand($this->zcl_str);
     $records = $frame->getAttributes();
     $this->assertEquals(2, count($records));
     $this->assertEquals($this->zcl_attributes_element_0, $records[0]);
     $this->assertEquals($this->zcl_attributes_element_1, $records[1]);
 }