Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Revert "Add return self type hint for setters"
This reverts commit 07dd971
  • Loading branch information
reznikartem committed Apr 30, 2020
commit ace7f23acba0214b76a28a3a90e4666100497bf2
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}
*
* @return $this
*/
public function {{setter}}({{#vendorExtensions.x-parameter-type}}{{vendorExtensions.x-parameter-type}} {{/vendorExtensions.x-parameter-type}}${{name}}{{^required}} = null{{/required}}): self
public function {{setter}}({{#vendorExtensions.x-parameter-type}}{{vendorExtensions.x-parameter-type}} {{/vendorExtensions.x-parameter-type}}${{name}}{{^required}} = null{{/required}})
{
$this->{{name}} = ${{name}};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getCode()
*
* @return $this
*/
public function setCode($code = null): self
public function setCode($code = null)
{
$this->code = $code;

Expand All @@ -119,7 +119,7 @@ public function getType()
*
* @return $this
*/
public function setType($type = null): self
public function setType($type = null)
{
$this->type = $type;

Expand All @@ -143,7 +143,7 @@ public function getMessage()
*
* @return $this
*/
public function setMessage($message = null): self
public function setMessage($message = null)
{
$this->message = $message;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function getId()
*
* @return $this
*/
public function setId($id = null): self
public function setId($id = null)
{
$this->id = $id;

Expand All @@ -110,7 +110,7 @@ public function getName()
*
* @return $this
*/
public function setName($name = null): self
public function setName($name = null)
{
$this->name = $name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function getId()
*
* @return $this
*/
public function setId($id = null): self
public function setId($id = null)
{
$this->id = $id;

Expand All @@ -149,7 +149,7 @@ public function getPetId()
*
* @return $this
*/
public function setPetId($petId = null): self
public function setPetId($petId = null)
{
$this->petId = $petId;

Expand All @@ -173,7 +173,7 @@ public function getQuantity()
*
* @return $this
*/
public function setQuantity($quantity = null): self
public function setQuantity($quantity = null)
{
$this->quantity = $quantity;

Expand All @@ -197,7 +197,7 @@ public function getShipDate(): ?\DateTime
*
* @return $this
*/
public function setShipDate(\DateTime $shipDate = null): self
public function setShipDate(\DateTime $shipDate = null)
{
$this->shipDate = $shipDate;

Expand All @@ -221,7 +221,7 @@ public function getStatus()
*
* @return $this
*/
public function setStatus($status = null): self
public function setStatus($status = null)
{
$this->status = $status;

Expand All @@ -245,7 +245,7 @@ public function isComplete()
*
* @return $this
*/
public function setComplete($complete = null): self
public function setComplete($complete = null)
{
$this->complete = $complete;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function getId()
*
* @return $this
*/
public function setId($id = null): self
public function setId($id = null)
{
$this->id = $id;

Expand All @@ -155,7 +155,7 @@ public function getCategory(): ?Category
*
* @return $this
*/
public function setCategory(Category $category = null): self
public function setCategory(Category $category = null)
{
$this->category = $category;

Expand All @@ -179,7 +179,7 @@ public function getName()
*
* @return $this
*/
public function setName($name): self
public function setName($name)
{
$this->name = $name;

Expand All @@ -203,7 +203,7 @@ public function getPhotoUrls(): array
*
* @return $this
*/
public function setPhotoUrls(array $photoUrls): self
public function setPhotoUrls(array $photoUrls)
{
$this->photoUrls = $photoUrls;

Expand All @@ -227,7 +227,7 @@ public function getTags(): ?array
*
* @return $this
*/
public function setTags(array $tags = null): self
public function setTags(array $tags = null)
{
$this->tags = $tags;

Expand All @@ -251,7 +251,7 @@ public function getStatus()
*
* @return $this
*/
public function setStatus($status = null): self
public function setStatus($status = null)
{
$this->status = $status;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function getId()
*
* @return $this
*/
public function setId($id = null): self
public function setId($id = null)
{
$this->id = $id;

Expand All @@ -110,7 +110,7 @@ public function getName()
*
* @return $this
*/
public function setName($name = null): self
public function setName($name = null)
{
$this->name = $name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getId()
*
* @return $this
*/
public function setId($id = null): self
public function setId($id = null)
{
$this->id = $id;

Expand All @@ -166,7 +166,7 @@ public function getUsername()
*
* @return $this
*/
public function setUsername($username = null): self
public function setUsername($username = null)
{
$this->username = $username;

Expand All @@ -190,7 +190,7 @@ public function getFirstName()
*
* @return $this
*/
public function setFirstName($firstName = null): self
public function setFirstName($firstName = null)
{
$this->firstName = $firstName;

Expand All @@ -214,7 +214,7 @@ public function getLastName()
*
* @return $this
*/
public function setLastName($lastName = null): self
public function setLastName($lastName = null)
{
$this->lastName = $lastName;

Expand All @@ -238,7 +238,7 @@ public function getEmail()
*
* @return $this
*/
public function setEmail($email = null): self
public function setEmail($email = null)
{
$this->email = $email;

Expand All @@ -262,7 +262,7 @@ public function getPassword()
*
* @return $this
*/
public function setPassword($password = null): self
public function setPassword($password = null)
{
$this->password = $password;

Expand All @@ -286,7 +286,7 @@ public function getPhone()
*
* @return $this
*/
public function setPhone($phone = null): self
public function setPhone($phone = null)
{
$this->phone = $phone;

Expand All @@ -310,7 +310,7 @@ public function getUserStatus()
*
* @return $this
*/
public function setUserStatus($userStatus = null): self
public function setUserStatus($userStatus = null)
{
$this->userStatus = $userStatus;

Expand Down