diff --git a/library/Icinga/Common/DataExtractor.php b/library/Icinga/Common/DataExtractor.php new file mode 100644 index 000000000..ed77115a9 --- /dev/null +++ b/library/Icinga/Common/DataExtractor.php @@ -0,0 +1,37 @@ + $value) { + $func = 'set'. ucfirst($name); + if (method_exists($this, $func)) { + $this->$func($value); + } + } + + return $this; + } + + /** + * Get this class's structure as array + * + * @return array + */ + public function toArray() + { + return []; + } +}