@@ -136,8 +136,10 @@ public static function getTypeName($nb = 0)
136136 }
137137
138138 /**
139- * @param $input
140- **/
139+ * @param array $input
140+ *
141+ * @return array|false
142+ */
141143 public function prepareInput ($ input )
142144 {
143145
@@ -229,6 +231,12 @@ public function post_getFromDB()
229231 $ this ->setAddressFromArray ($ this ->fields , "version " , "name " , "binary " );
230232 }
231233
234+ /**
235+ * @param CommonGLPI $item
236+ * @param int $withtemplate
237+ *
238+ * @return void
239+ */
232240 public static function showForItem (CommonGLPI $ item , $ withtemplate = 0 )
233241 {
234242 global $ DB ;
@@ -335,8 +343,10 @@ public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $
335343 }
336344
337345 /**
338- * @param $item CommonDBTM object
339- **/
346+ * @param CommonDBTM $item
347+ *
348+ * @return int|void
349+ */
340350 public static function countForItem (CommonDBTM $ item )
341351 {
342352 global $ DB ;
@@ -378,7 +388,9 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
378388
379389 /**
380390 * Disable the address
381- **/
391+ *
392+ * @return void
393+ */
382394 public function disableAddress ()
383395 {
384396 $ this ->version = '' ;
@@ -481,32 +493,49 @@ public function setAddressFromArray(array $array, $versionField, $textualField,
481493
482494 /**
483495 * Check address validity
484- **/
496+ *
497+ * @return bool
498+ */
485499 public function is_valid ()
486500 {
487501 return (($ this ->version != '' ) && ($ this ->textual != '' ) && ($ this ->binary != '' ));
488502 }
489503
504+ /**
505+ * @return false|int|string
506+ */
490507 public function getVersion ()
491508 {
492509 return $ this ->version !== '' ? $ this ->version : false ;
493510 }
494511
512+ /**
513+ * @return bool
514+ */
495515 public function is_ipv4 ()
496516 {
497517 return ($ this ->getVersion () == 4 );
498518 }
499519
520+ /**
521+ * @return bool
522+ */
500523 public function is_ipv6 ()
501524 {
502525 return ($ this ->getVersion () == 6 );
503526 }
504527
528+ /**
529+ * @return false|string
530+ */
505531 public function getTextual ()
506532 {
507533 return $ this ->textual !== '' ? $ this ->textual : false ;
508534 }
509535
536+ /**
537+ * @return false|int[]|string
538+ */
510539 public function getBinary ()
511540 {
512541 return $ this ->binary !== '' ? $ this ->binary : false ;
@@ -1052,12 +1081,14 @@ public function equals($ipaddress)
10521081 }
10531082
10541083 /**
1055- * @param $itemtype
1056- * @param $base HTMLTableBase object
1057- * @param $super HTMLTableSuperHeader object (default NULL)
1058- * @param $father HTMLTableHeader object (default NULL)
1084+ * @param class-string<CommonDBTM> $itemtype
1085+ * @param HTMLTableBase $base
1086+ * @param ? HTMLTableSuperHeader $super
1087+ * @param ? HTMLTableHeader $father
10591088 * @param $options array
1060- **/
1089+ *
1090+ * @return void
1091+ */
10611092 public static function getHTMLTableHeader (
10621093 $ itemtype ,
10631094 HTMLTableBase $ base ,
@@ -1261,11 +1292,13 @@ private static function getCriteriaLinkedToNetwork(IPNetwork $network): array
12611292 }
12621293
12631294 /**
1264- * @param HTMLTableRow $row
1265- * @param CommonDBTM $item
1266- * @param HTMLTableCell $father
1295+ * @param ? HTMLTableRow $row
1296+ * @param ? CommonDBTM $item
1297+ * @param ? HTMLTableCell $father
12671298 * @param array $options
1268- **/
1299+ *
1300+ * @return void
1301+ */
12691302 public static function getHTMLTableCellsForItem (
12701303 ?HTMLTableRow $ row = null ,
12711304 ?CommonDBTM $ item = null ,
0 commit comments