@@ -142,6 +142,9 @@ public function rawSearchOptions()
142142 }
143143
144144
145+ /**
146+ * @return false|IPAddress
147+ */
145148 public function getAddress ()
146149 {
147150
@@ -155,6 +158,9 @@ public function getAddress()
155158 }
156159
157160
161+ /**
162+ * @return false|IPNetmask
163+ */
158164 public function getNetmask ()
159165 {
160166
@@ -168,6 +174,9 @@ public function getNetmask()
168174 }
169175
170176
177+ /**
178+ * @return false|IPAddress
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,15 @@ 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
928+ *
929+ * @TODO Deprecate the `$excludeBroadcastAndNetwork`, it is never used.
915930 **/
916931 public function computeNetworkRange (&$ start , &$ end = null , $ excludeBroadcastAndNetwork = '' )
917932 {
@@ -936,18 +951,20 @@ public function computeNetworkRange(&$start, &$end = null, $excludeBroadcastAndN
936951
937952 /**
938953 * \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)
954+ * That is useful , for instance, to compute the "real" network address (the first address)
940955 * or the broadcast address of the network
941956 *
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)
957+ * @param IPAddress|array $address (see \ref parameterType) the address of the network
958+ * @param IPNetmask|array $netmask (see \ref parameterType) its netmask
959+ * @param IPAddress|array|null $firstAddress (see \ref parameterType - in/out)
960+ * the first address (ie real address of the network)
961+ * @param IPAddress|array|null $lastAddress (see \ref parameterType - in/out)
962+ * the lastAddress of the network
963+ * (ie. : the broadcast address) (default NULL)
964+ * @param bool $excludeBroadcastAndNetwork exclude broadcast and network address from the
965+ * result (false by default)
966+ *
967+ * @return void
951968 **/
952969 public static function computeNetworkRangeFromAdressAndNetmask (
953970 $ address ,
@@ -989,14 +1006,16 @@ public static function computeNetworkRangeFromAdressAndNetmask(
9891006
9901007
9911008 /**
1009+ * @param class-string<CommonDBTM> $itemtype
1010+ * @param HTMLTableBase $base
1011+ * @param HTMLTableSuperHeader|null $super
1012+ * @param HTMLTableHeader|null $father
1013+ * @param array $options
1014+ * @throws Exception
9921015 * @since 0.84
9931016 *
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- **/
1017+ * @return void
1018+ */
10001019 public static function getHTMLTableHeader (
10011020 $ itemtype ,
10021021 HTMLTableBase $ base ,
@@ -1021,13 +1040,15 @@ public static function getHTMLTableHeader(
10211040
10221041
10231042 /**
1024- * @since 0.84
1043+ * @param HTMLTableRow|null $row
1044+ * @param CommonDBTM|null $item
1045+ * @param HTMLTableCell|null $father
1046+ * @param array $options
1047+ * @return void
1048+ * @throws HTMLTableUnknownHeader
10251049 *
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- **/
1050+ * @return void
1051+ */
10311052 public static function getHTMLTableCellsForItem (
10321053 ?HTMLTableRow $ row = null ,
10331054 ?CommonDBTM $ item = null ,
@@ -1095,9 +1116,12 @@ public static function getHTMLTableCellsForItem(
10951116 /**
10961117 * Show all available IPNetwork for a given entity
10971118 *
1098- * @param $entities_id entity of the IPNetworks (-1 for all entities)
1099- * (default -1)
1100- **/
1119+ * @param int $entities_id entity of the IPNetworks (-1 for all entities)
1120+ * (default -1)
1121+ * @param int $value
1122+ *
1123+ * @return void
1124+ */
11011125 public static function showIPNetworkProperties ($ entities_id = -1 , $ value = 0 )
11021126 {
11031127 global $ CFG_GLPI ;
0 commit comments