diff --git a/php/src/Snagshout/Promote/Model/ReviewFoundRequestBody.php b/php/src/Snagshout/Promote/Model/ReviewFoundRequestBody.php index cbeac9b..ba9be6a 100644 --- a/php/src/Snagshout/Promote/Model/ReviewFoundRequestBody.php +++ b/php/src/Snagshout/Promote/Model/ReviewFoundRequestBody.php @@ -13,6 +13,10 @@ class ReviewFoundRequestBody { + /** + * @var string + */ + protected $createdAt; /** * @var string */ @@ -29,10 +33,32 @@ class ReviewFoundRequestBody * @var string */ protected $reviewId; + /** + * @var string + */ + protected $url; /** * @var int */ protected $stars; + /** + * @return string + */ + public function getCreatedAt() + { + return $this->createdAt; + } + /** + * @param string $createdAt + * + * @return self + */ + public function setCreatedAt($createdAt = null) + { + $this->createdAt = $createdAt; + + return $this; + } /** * @return string */ @@ -105,6 +131,24 @@ public function setReviewId($reviewId = null) return $this; } + /** + * @return string + */ + public function getUrl() + { + return $this->url; + } + /** + * @param string $url + * + * @return self + */ + public function setUrl($url = null) + { + $this->url = $url; + + return $this; + } /** * @return int */ diff --git a/php/src/Snagshout/Promote/Normalizer/ReviewFoundRequestBodyNormalizer.php b/php/src/Snagshout/Promote/Normalizer/ReviewFoundRequestBodyNormalizer.php index e1fa8a0..d7c6a09 100644 --- a/php/src/Snagshout/Promote/Normalizer/ReviewFoundRequestBodyNormalizer.php +++ b/php/src/Snagshout/Promote/Normalizer/ReviewFoundRequestBodyNormalizer.php @@ -36,6 +36,9 @@ public function supportsNormalization($data, $format = null) public function denormalize($data, $class, $format = null, array $context = []) { $object = new \Snagshout\Promote\Model\ReviewFoundRequestBody(); + if (property_exists($data, 'createdAt')) { + $object->setCreatedAt($data->{'createdAt'}); + } if (property_exists($data, 'title')) { $object->setTitle($data->{'title'}); } @@ -48,6 +51,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'reviewId')) { $object->setReviewId($data->{'reviewId'}); } + if (property_exists($data, 'url')) { + $object->setUrl($data->{'url'}); + } if (property_exists($data, 'stars')) { $object->setStars($data->{'stars'}); } @@ -57,6 +63,9 @@ public function denormalize($data, $class, $format = null, array $context = []) public function normalize($object, $format = null, array $context = []) { $data = new \stdClass(); + if (null !== $object->getCreatedAt()) { + $data->{'createdAt'} = $object->getCreatedAt(); + } if (null !== $object->getTitle()) { $data->{'title'} = $object->getTitle(); } @@ -69,6 +78,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getReviewId()) { $data->{'reviewId'} = $object->getReviewId(); } + if (null !== $object->getUrl()) { + $data->{'url'} = $object->getUrl(); + } if (null !== $object->getStars()) { $data->{'stars'} = $object->getStars(); }