$argValue) { if ($key === "id") { $id = (int)$argValue; } } $itemData = [ 'item_id' => $id, 'name' => "itemName" ]; return $itemData; } }