public function setFrame($frame)
 {
     while (strlen($frame)) {
         $configure_reporting_element = new AttributeReportingConfigurationRecord();
         $configure_reporting_element->consumeFrame($frame);
         $this->addAttributeReportingConfigurationRecord($configure_reporting_element);
     }
 }
 public function testGetAttributeReportingConfigurationRecord()
 {
     // Test with a Received Object
     $parent = AttributeReportingConfigurationRecord::constructReceived(0x1234, 60);
     $record = AttributeReportingConfigurationStatusRecord::constructSuccess($parent);
     $config_record = $record->getAttributeReportingConfigurationRecord();
     $this->assertInstanceOf("Munisense\\Zigbee\\ZCL\\General\\AttributeReportingConfigurationRecord", $config_record);
     $this->assertEquals($parent->displayFrame(), $config_record->displayFrame());
     // Test with a Reported Object
     $parent = AttributeReportingConfigurationRecord::constructReported(0x1234, 60, 400, 200, 12);
     $record = AttributeReportingConfigurationStatusRecord::constructSuccess($parent);
     $config_record = $record->getAttributeReportingConfigurationRecord();
     $this->assertInstanceOf("Munisense\\Zigbee\\ZCL\\General\\AttributeReportingConfigurationRecord", $config_record);
     $this->assertEquals($parent->displayFrame(), $config_record->displayFrame());
 }
 public function __toString()
 {
     return "Status: " . $this->displayStatus() . ", " . parent::__toString();
 }