Skip to content

Commit

Permalink
Merge pull request #1539 from wielebenwir/refactor/deprecates-booking…
Browse files Browse the repository at this point in the history
…-code

BookingCode: Deprecates setters
  • Loading branch information
hansmorb authored Mar 3, 2024
2 parents f85a25d + 46eb3f2 commit b3dde75
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/Model/BookingCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* This is the data type for a single booking code.
* It is generated by the BookingCodes repository.
*
* TODO: Remove setters and make the class immutable.
* @since 2.9.1 setters are deprecated
*
* @see \CommonsBooking\Repository\BookingCodes
*/
Expand Down Expand Up @@ -74,8 +74,7 @@ public function getDate(): string {
}

/**
* TODO: The setters should be obsolete because these values should not be changed after creation.
* CURRENTLY NOT USED
* @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
Expand All @@ -100,8 +99,7 @@ public function getItemName() {
}

/**
* TODO: The setters should be obsolete because these values should not be changed after creation.
* CURRENTLY NOT USED
* @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
Expand All @@ -120,8 +118,7 @@ public function getLocation(): int {
}

/**
* TODO: The setters should be obsolete because these values should not be changed after creation.
* CURRENTLY NOT USED
* @deprecated will be deleted in the next version. This Type should be immutable, use constructor to create a new instance
* @param mixed $location
*
* @return BookingCode
Expand All @@ -140,8 +137,7 @@ public function getTimeframe(): int {
}

/**
* TODO: The setters should be obsolete because these values should not be changed after creation.
* CURRENTLY NOT USED
* @deprecated will be deleted in the next version. This Type should be immutable, use constructor to create a new instance
* @param mixed $timeframe
*
* @return BookingCode
Expand All @@ -160,8 +156,7 @@ public function getCode(): string {
}

/**
* TODO: The setters should be obsolete because these values should not be changed after creation.
* CURRENTLY NOT USED
* @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
Expand Down

0 comments on commit b3dde75

Please sign in to comment.