@@ -142,6 +142,9 @@ public function rawSearchOptions()
142142 }
143143
144144
145+ /**
146+ * @return false|IPAddress|null
147+ */
145148 public function getAddress ()
146149 {
147150
@@ -155,6 +158,9 @@ public function getAddress()
155158 }
156159
157160
161+ /**
162+ * @return false|IPNetmask|null
163+ */
158164 public function getNetmask ()
159165 {
160166
@@ -168,6 +174,9 @@ public function getNetmask()
168174 }
169175
170176
177+ /**
178+ * @return false|IPAddress|null
179+ */
171180 public function getGateway ()
172181 {
173182
@@ -264,8 +273,10 @@ public function getNewAncestor()
264273
265274
266275 /**
267- * @param $input
268- **/
276+ * @param array $input
277+ *
278+ * @return array
279+ */
269280 public function prepareInput ($ input )
270281 {
271282
@@ -907,11 +918,13 @@ public static function checkNetworkRelativity(
907918 * Compute the first and the last address of $this
908919 * \see computeNetworkRangeFromAdressAndNetmask()
909920 *
910- * @param $start
911- * @param $end (default NULL)
912- * @param $excludeBroadcastAndNetwork Don't provide extremties addresses
921+ * @param IPAddress|array|null $start
922+ * @param IPAddress|array|null $end (default NULL)
923+ * @param string $excludeBroadcastAndNetwork Don't provide extremties addresses
913924 * ($this->fields['addressable'] by default)
914925 * (default '')
926+ *
927+ * @return void
915928 **/
916929 public function computeNetworkRange (&$ start , &$ end = null , $ excludeBroadcastAndNetwork = '' )
917930 {
@@ -936,18 +949,20 @@ public function computeNetworkRange(&$start, &$end = null, $excludeBroadcastAndN
936949
937950 /**
938951 * \brief Compute the first and the last address of a network.
939- * That is usefull , for instance, to compute the "real" network address (the first address)
952+ * That is useful , for instance, to compute the "real" network address (the first address)
940953 * or the broadcast address of the network
941954 *
942- * @param $address (see \ref parameterType) the address of the network
943- * @param $netmask (see \ref parameterType) its netmask
944- * @param $firstAddress (see \ref parameterType - in/out)
945- * the first address (ie real address of the network)
946- * @param $lastAddress (see \ref parameterType - in/out)
947- * the lastAddress of the network
948- * (ie. : the broadcast address) (default NULL)
949- * @param $excludeBroadcastAndNetwork boolean exclude broadcast and network address from the
950- * result (false by default)
955+ * @param IPAddress|array $address (see \ref parameterType) the address of the network
956+ * @param IPNetmask|array $netmask (see \ref parameterType) its netmask
957+ * @param IPAddress|array|null $firstAddress (see \ref parameterType - in/out)
958+ * the first address (ie real address of the network)
959+ * @param IPAddress|array|null $lastAddress (see \ref parameterType - in/out)
960+ * the lastAddress of the network
961+ * (ie. : the broadcast address) (default NULL)
962+ * @param bool $excludeBroadcastAndNetwork exclude broadcast and network address from the
963+ * result (false by default)
964+ *
965+ * @return void
951966 **/
952967 public static function computeNetworkRangeFromAdressAndNetmask (
953968 $ address ,
@@ -989,14 +1004,16 @@ public static function computeNetworkRangeFromAdressAndNetmask(
9891004
9901005
9911006 /**
1007+ * @param class-string<CommonDBTM> $itemtype
1008+ * @param HTMLTableBase $base
1009+ * @param HTMLTableSuperHeader|null $super
1010+ * @param HTMLTableHeader|null $father
1011+ * @param array $options
1012+ * @throws Exception
9921013 * @since 0.84
9931014 *
994- * @param $itemtype
995- * @param $base HTMLTableBase object
996- * @param $super HTMLTableSuperHeader object (default NULL)
997- * @param $father HTMLTableHeader object (default NULL)
998- * @param $options array
999- **/
1015+ * @return void
1016+ */
10001017 public static function getHTMLTableHeader (
10011018 $ itemtype ,
10021019 HTMLTableBase $ base ,
@@ -1021,13 +1038,15 @@ public static function getHTMLTableHeader(
10211038
10221039
10231040 /**
1024- * @since 0.84
1041+ * @param HTMLTableRow|null $row
1042+ * @param CommonDBTM|null $item
1043+ * @param HTMLTableCell|null $father
1044+ * @param array $options
1045+ * @return void
1046+ * @throws HTMLTableUnknownHeader
10251047 *
1026- * @param $row HTMLTableRow object (default NULL)
1027- * @param $item CommonDBTM object (default NULL)
1028- * @param $father HTMLTableCell object (default NULL)
1029- * @param $options array
1030- **/
1048+ * @return void
1049+ */
10311050 public static function getHTMLTableCellsForItem (
10321051 ?HTMLTableRow $ row = null ,
10331052 ?CommonDBTM $ item = null ,
@@ -1095,9 +1114,12 @@ public static function getHTMLTableCellsForItem(
10951114 /**
10961115 * Show all available IPNetwork for a given entity
10971116 *
1098- * @param $entities_id entity of the IPNetworks (-1 for all entities)
1099- * (default -1)
1100- **/
1117+ * @param int $entities_id entity of the IPNetworks (-1 for all entities)
1118+ * (default -1)
1119+ * @param int $value
1120+ *
1121+ * @return void
1122+ */
11011123 public static function showIPNetworkProperties ($ entities_id = -1 , $ value = 0 )
11021124 {
11031125 global $ CFG_GLPI ;
0 commit comments