getTableName(); } public static function shortTypeForObject(DbObject $object) { if ($object instanceof IcingaObject) { return $object->getShortTableName(); } return $object->getTableName(); } public static function newObject($type, $properties = [], Db $db = null) { /** @var DbObject $class fake hint for the IDE, it's a string */ $class = self::classByType($type); return $class::create($properties, $db); } }