public function deactivate($reason = 'other', $explanation = '')
    {
        $userId = $this->id();

        if ($userId === null) {
            return false;
        }

        $request = [
            'user_id'     => $userId,
            'reason'      => $reason,
            'explanation' => $explanation,
        ];

        return $this->post(UrlBuilder::RESOURCE_DEACTIVATE_ACCOUNT, $request);
    }
public function deactivate($reason = 'other', $explanation = '')
    {
        $userId = $this->id();

        if ($userId === null) {
            return false;
        }

        $request = [
            'user_id'     => $userId,
            'reason'      => $reason,
            'explanation' => $explanation,
        ];

        return $this->post(UrlBuilder::RESOURCE_DEACTIVATE_ACCOUNT, $request);
    }
public function deactivate ( $ reason = 'other' , $ explanation = '' ) { $ userId = $ this -> id ( ) ; if ( $ userId === null ) { return false ; } $ request = [ 'user_id' => $ userId , 'reason' => $ reason , 'explanation' => $ explanation , ] ; return $ this -> post ( UrlBuilder :: RESOURCE_DEACTIVATE_ACCOUNT , $ request ) ; }
Deactivates your account.

@param string $reason
@param string $explanation
@return bool
Deactivates your account .