Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit ea4ff5d

Browse files
committed
Fixed wrong data types
1 parent b052559 commit ea4ff5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Position.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ public function setName(string $name)
9292
$this->name = $name;
9393
}
9494

95-
public function setPriceTotal(string $priceTotal)
95+
public function setPriceTotal(float $priceTotal)
9696
{
9797
$this->priceTotal = $priceTotal;
9898
}
9999

100-
public function setPriceSingle(string $priceSingle)
100+
public function setPriceSingle(float $priceSingle)
101101
{
102102
$this->priceSingle = $priceSingle;
103103
}
@@ -107,12 +107,12 @@ public function setTaxCode(string $taxCode)
107107
$this->taxCode = $taxCode;
108108
}
109109

110-
public function setWeight(string $weight)
110+
public function setWeight(float $weight)
111111
{
112112
$this->weight = $weight;
113113
}
114114

115-
public function setAmount(string $amount)
115+
public function setAmount(int $amount)
116116
{
117117
$this->amount = $amount;
118118
}

0 commit comments

Comments
 (0)