| Total Complexity | 5 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | class ListingDeleteObject implements \JsonSerializable |
||
| 9 | { |
||
| 10 | /** @var string */ |
||
| 11 | private $listingReference; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | private $deletionReason; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | public function getListingReference() |
||
| 20 | { |
||
| 21 | return $this->listingReference; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $listingReference |
||
| 26 | * |
||
| 27 | * @return ListingDeleteObject |
||
| 28 | */ |
||
| 29 | public function setListingReference($listingReference) |
||
| 30 | { |
||
| 31 | $this->listingReference = $listingReference; |
||
| 32 | |||
| 33 | return $this; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getDeletionReason() |
||
| 40 | { |
||
| 41 | return $this->deletionReason; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $deletionReason |
||
| 46 | * |
||
| 47 | * @return ListingDeleteObject |
||
| 48 | */ |
||
| 49 | public function setDeletionReason($deletionReason) |
||
| 54 | } |
||
| 55 | |||
| 56 | /** {@inheritDoc} */ |
||
| 57 | function jsonSerialize() |
||
| 62 | ]; |
||
| 63 | } |
||
| 65 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.