Add return types to getter and fluent setter (#5348)

* Add return types to getter and fluent setter

* Add build example output
This commit is contained in:
Sem Schilder
2020-02-25 04:46:43 +01:00
committed by GitHub
parent b05df5d3ef
commit c0fcffdfe4
3 changed files with 10 additions and 10 deletions

View File

@@ -185,7 +185,7 @@ class Order
*
* @return \DateTime|null
*/
public function getShipDate()
public function getShipDate(): ?\DateTime
{
return $this->shipDate;
}
@@ -197,7 +197,7 @@ class Order
*
* @return $this
*/
public function setShipDate(\DateTime $shipDate = null)
public function setShipDate(\DateTime $shipDate = null): ?\DateTime
{
$this->shipDate = $shipDate;

View File

@@ -143,7 +143,7 @@ class Pet
*
* @return OpenAPI\Server\Model\Category|null
*/
public function getCategory()
public function getCategory(): ?Category
{
return $this->category;
}
@@ -155,7 +155,7 @@ class Pet
*
* @return $this
*/
public function setCategory(Category $category = null)
public function setCategory(Category $category = null): ?Category
{
$this->category = $category;
@@ -191,7 +191,7 @@ class Pet
*
* @return string[]
*/
public function getPhotoUrls()
public function getPhotoUrls(): array
{
return $this->photoUrls;
}
@@ -203,7 +203,7 @@ class Pet
*
* @return $this
*/
public function setPhotoUrls(array $photoUrls)
public function setPhotoUrls(array $photoUrls): array
{
$this->photoUrls = $photoUrls;
@@ -215,7 +215,7 @@ class Pet
*
* @return OpenAPI\Server\Model\Tag[]|null
*/
public function getTags()
public function getTags(): ?array
{
return $this->tags;
}
@@ -227,7 +227,7 @@ class Pet
*
* @return $this
*/
public function setTags(array $tags = null)
public function setTags(array $tags = null): ?array
{
$this->tags = $tags;