add parameter for id

This commit is contained in:
Marc Michalsky forumZFD 2020-12-14 17:26:17 +01:00
parent 999acd1029
commit 7817b78d2c
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -16,10 +16,11 @@ class CRM_TwingleCampaign_BAO_TwingleProject extends Campaign {
* @param string $origin
* Origin of the arrays. It can be one of two constants:
* TwingleProject::TWINGLE|CIVICRM
* @param int|null $id
*
* @throws Exception
* @throws \Exception
*/
function __construct(array $project, string $origin) {
function __construct(array $project, string $origin, int $id = NULL) {
parent::__construct($project, $origin);
$this->id = $id;