Skip to content

Commit

Permalink
change int to float
Browse files Browse the repository at this point in the history
  • Loading branch information
rem42 committed May 9, 2019
1 parent 8d64348 commit 480e51e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Soap/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class Article
*/
protected $quantity;
/**
* @var integer
* @Serializer\Type("integer")
* @var float
* @Serializer\Type("float")
* @Serializer\XmlElement(cdata=false)
* @Serializer\SerializedName("weight")
*/
Expand Down Expand Up @@ -227,19 +227,19 @@ public function setValue(?int $value)
}

/**
* @return int
* @return float
*/
public function getWeight(): ?int
public function getWeight(): ?float
{
return $this->weight;
}

/**
* @param int $weight
* @param float $weight
*
* @return $this
*/
public function setWeight(?int $weight)
public function setWeight(?float $weight)
{
$this->weight = $weight;
return $this;
Expand Down

0 comments on commit 480e51e

Please sign in to comment.