35 ?
int $contactId =
null,
36 ?
int $contactType =
null,
37 ?
string $channelId =
null,
38 ?
string $senderId =
null,
44 (!is_null($contactId) && $contactId <= 0)
45 || (!is_null($contactType) && $contactType <= 0)
48 $result->addError(
new Error(
'Invalid data was provided', 100070));
51 if ($result->isSuccess())
54 ->setOwnerId($this->userId)
55 ->setEntityId($this->entityId)
56 ->setContactType($contactType)
57 ->setContactId($contactId)
58 ->setChannelId($channelId)
59 ->setSenderId($senderId)
61 $crmDealJointLink = Factory::getInstance()->createCrmDealJointLink($crmDealLink, $memberIds);
62 $result->setData([
'link' => $crmDealJointLink]);