From 9729b0e99e6a4a466c22ef67a32178692dc9ac6d Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Fri, 22 Apr 2022 09:26:17 +0200 Subject: [PATCH] Remove trait DataExtractor --- library/Icinga/Common/DataExtractor.php | 39 ------------------------- 1 file changed, 39 deletions(-) delete mode 100644 library/Icinga/Common/DataExtractor.php diff --git a/library/Icinga/Common/DataExtractor.php b/library/Icinga/Common/DataExtractor.php deleted file mode 100644 index 30b2a5ac0..000000000 --- a/library/Icinga/Common/DataExtractor.php +++ /dev/null @@ -1,39 +0,0 @@ - $value) { - $func = 'set' . ucfirst($name); - if (method_exists($this, $func)) { - $this->$func($value); - } - } - - return $this; - } - - /** - * Get this class's structure as array - * - * Stringifies the attrs or set to null if it doesn't have a value, when $stringify is true - * - * @param bool $stringify Whether, the attributes should be returned unmodified - * - * @return array - */ - public function toArray(bool $stringify = true): array - { - return []; - } -}