public function delete(OpportunityStatus $opportunityStatus): void
    {
        $id = $opportunityStatus->getId();

        $opportunityStatus->setId(null);

        $this->client->delete($this->prepareUrlForKey('delete-status', ['id' => $id]));
    }
public function delete(OpportunityStatus $opportunityStatus): void
    {
        $id = $opportunityStatus->getId();

        $opportunityStatus->setId(null);

        $this->client->delete($this->prepareUrlForKey('delete-status', ['id' => $id]));
    }
public function delete ( OpportunityStatus $ opportunityStatus ) : void { $ id = $ opportunityStatus -> getId ( ) ; $ opportunityStatus -> setId ( null ) ; $ this -> client -> delete ( $ this -> prepareUrlForKey ( 'delete-status' , [ 'id' => $ id ] ) ) ; }
Deletes the given opportunity status.

@param OpportunityStatus $opportunityStatus The opportunity status to delete
Deletes the given opportunity status .