mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 04:27:14 +01:00
34 lines
575 B
PHP
34 lines
575 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Xentral\Modules\Pipedrive\Wrapper;
|
||
|
|
||
|
use erpAPI;
|
||
|
|
||
|
final class PipedriveAddAddressRoleWrapper
|
||
|
{
|
||
|
|
||
|
/** @var erpAPI $erp */
|
||
|
private $erp;
|
||
|
|
||
|
/**
|
||
|
* @param erpAPI $erp
|
||
|
*/
|
||
|
public function __construct(erpAPI $erp)
|
||
|
{
|
||
|
$this->erp = $erp;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param int $contactId
|
||
|
* @param int $groupId
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function add(int $contactId, int $groupId): void
|
||
|
{
|
||
|
$this->erp->AddRolleZuAdresse($contactId, 'Mitglied', 'von', 'Gruppe', $groupId);
|
||
|
}
|
||
|
}
|