Skip to content

Commit

Permalink
Merge pull request #1645 from wielebenwir/feature/bookingcode-depreca…
Browse files Browse the repository at this point in the history
…ted-setters

BookingCode: Removes deprecated setters
  • Loading branch information
hansmorb authored Oct 16, 2024
2 parents 1322269 + 3ed2628 commit 048dc48
Showing 1 changed file with 1 addition and 36 deletions.
37 changes: 1 addition & 36 deletions src/Model/BookingCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* It is generated by the BookingCodes repository.
*
* @since 2.9.1 setters are deprecated
* @since 2.10 setters are removed, BookingCode is immutable
*
* @see \CommonsBooking\Repository\BookingCodes
*/
Expand Down Expand Up @@ -57,18 +58,6 @@ public function getDate(): string {
return $this->date;
}

/**
* @deprecated will be deleted in the next version. This Type should be immutable, use constructor to create a new instance
* @param mixed $date
*
* @return BookingCode
*/
public function setDate( $date ): BookingCode {
$this->date = $date;

return $this;
}

/**
* @return int
*/
Expand All @@ -82,34 +71,10 @@ public function getItemName() {
return $post->post_title;
}

/**
* @deprecated will be deleted in the next version. This Type should be immutable, use constructor to create a new instance
* @param mixed $item
*
* @return BookingCode
*/
public function setItem( $item ): BookingCode {
$this->item = $item;

return $this;
}

/**
* @return string
*/
public function getCode(): string {
return $this->code;
}

/**
* @deprecated will be deleted in the next version. This Type should be immutable, use constructor to create a new instance
* @param mixed $code
*
* @return BookingCode
*/
public function setCode( $code ): BookingCode {
$this->code = $code;

return $this;
}
}

0 comments on commit 048dc48

Please sign in to comment.