Skip to content

Commit 353133b

Browse files
committed
added php doc comments
1 parent bfaf5b9 commit 353133b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

functions/functions.collector.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,14 @@ function drawCollectorAddItemConfirmation(){
4949

5050
}
5151

52-
53-
function assembleItemData($price,){
52+
53+
/** maps new item data for insertion
54+
*
55+
* @param mixed $price from pricing algorithm
56+
* @param mixed $days_to_minimum_price set in contants/constants.all.php
57+
* @return void
58+
*/
59+
function assembleItemData($price, $days_to_minimum_price){
5460
return array(
5561
"i_name"=> $_POST["title"],
5662
"i_description"=> $_POST["description"],
@@ -60,7 +66,7 @@ function assembleItemData($price,){
6066
"i_serialnum"=> $_POST["serial"],
6167
"original_price"=> $_POST["original_price"],
6268
"original_purchase_date"=> $_POST["original_purchase_date"],
63-
"days_to_minimum_price"=> 10
69+
"days_to_minimum_price"=> $days_to_minimum_price
6470
);
6571
}
6672

0 commit comments

Comments
 (0)