diff --git a/pandora_console/include/lib/Group.php b/pandora_console/include/lib/Group.php index a03bca3a5a..aef708e801 100644 --- a/pandora_console/include/lib/Group.php +++ b/pandora_console/include/lib/Group.php @@ -46,6 +46,20 @@ class Group extends Entity private static $ajaxMethods = ['getGroupsForSelect']; + /** + * Instances a new object using array definition. + * + * @param array $data Fields data. + * @param string $class_str Class name. + * + * @return object With current definition. + */ + public static function build(array $data=[], string $class_str=__CLASS__) + { + return parent::build($data, $class_str); + } + + /** * Builds a PandoraFMS\Group object from a group id. *