From 480e51e2264dfd175e69f0d30df1cc961e29fc07 Mon Sep 17 00:00:00 2001 From: rem42 Date: Thu, 9 May 2019 23:28:36 +0200 Subject: [PATCH] change int to float --- Soap/Article.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Soap/Article.php b/Soap/Article.php index f398d37..a61db97 100644 --- a/Soap/Article.php +++ b/Soap/Article.php @@ -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") */ @@ -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;