| Total Complexity | 5 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | class ListingDeleteObject implements \JsonSerializable |
||
| 9 | { |
||
| 10 | /** @var null|string */ |
||
| 11 | private $listingReference; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Enum (withdrawn, offer_accepted, exchanged, completed, let) |
||
| 15 | * |
||
| 16 | * @var null|string |
||
| 17 | */ |
||
| 18 | private $deletionReason; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return null|string |
||
| 22 | */ |
||
| 23 | 4 | public function getListingReference() |
|
| 24 | { |
||
| 25 | 4 | return $this->listingReference; |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $listingReference |
||
| 30 | * |
||
| 31 | * @return ListingDeleteObject |
||
| 32 | */ |
||
| 33 | 2 | public function setListingReference(string $listingReference): self |
|
| 34 | { |
||
| 35 | 2 | $this->listingReference = $listingReference; |
|
| 36 | |||
| 37 | 2 | return $this; |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return null|string |
||
| 42 | */ |
||
| 43 | 4 | public function getDeletionReason() |
|
| 44 | { |
||
| 45 | 4 | return $this->deletionReason; |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $deletionReason |
||
| 50 | * |
||
| 51 | * @return ListingDeleteObject |
||
| 52 | */ |
||
| 53 | 2 | public function setDeletionReason(string $deletionReason): self |
|
| 58 | } |
||
| 59 | |||
| 60 | /** {@inheritDoc} */ |
||
| 61 | 3 | public function jsonSerialize(): array |
|
| 66 | ]); |
||
| 67 | } |
||
| 69 |