Skip to content

Commit

Permalink
Fixed wrong data types
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKrisKrisu committed Aug 22, 2020
1 parent b052559 commit ea4ff5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Position.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ public function setName(string $name)
$this->name = $name;
}

public function setPriceTotal(string $priceTotal)
public function setPriceTotal(float $priceTotal)
{
$this->priceTotal = $priceTotal;
}

public function setPriceSingle(string $priceSingle)
public function setPriceSingle(float $priceSingle)
{
$this->priceSingle = $priceSingle;
}
Expand All @@ -107,12 +107,12 @@ public function setTaxCode(string $taxCode)
$this->taxCode = $taxCode;
}

public function setWeight(string $weight)
public function setWeight(float $weight)
{
$this->weight = $weight;
}

public function setAmount(string $amount)
public function setAmount(int $amount)
{
$this->amount = $amount;
}
Expand Down

0 comments on commit ea4ff5d

Please sign in to comment.