X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContact%2FIntroduction%2FFactory%2FIntroduction.php;h=8aa5b7591a0e549550dced25316e1d20683cad64;hb=690369cc4ba53ccc43e7df7de6e0fbcd70909b36;hp=35275de7f16cb1651a943b64a4d078ab2a34eb5e;hpb=ed184bd592a074090f3c9c5e441674f000fd983f;p=friendica.git diff --git a/src/Contact/Introduction/Factory/Introduction.php b/src/Contact/Introduction/Factory/Introduction.php index 35275de7f1..8aa5b7591a 100644 --- a/src/Contact/Introduction/Factory/Introduction.php +++ b/src/Contact/Introduction/Factory/Introduction.php @@ -37,7 +37,6 @@ class Introduction extends BaseFactory implements ICanCreateFromTableRow return new Entity\Introduction( $row['uid'] ?? 0, $row['suggest-cid'] ?? 0, - $row['fid'] ?? null, $row['contact-id'] ?? null, !empty($row['knowyou']), !empty($row['duplex']), @@ -51,18 +50,16 @@ class Introduction extends BaseFactory implements ICanCreateFromTableRow public function createNew( int $uid, - int $cid, + int $sid, string $note, - int $fid = null, - int $sid = null, + int $cid = null, bool $knowyou = false, bool $duplex = false ): Entity\Introduction { return $this->createFromTableRow([ 'uid' => $uid, - 'fid' => $fid, - 'contact-id' => $cid, 'suggest-cid' => $sid, + 'contact-id' => $cid, 'knowyou' => $knowyou, 'duplex' => $duplex, 'note' => $note, @@ -72,7 +69,7 @@ class Introduction extends BaseFactory implements ICanCreateFromTableRow ]); } - public function createDummy(int $id): Entity\Introduction + public function createDummy(?int $id): Entity\Introduction { return $this->createFromTableRow(['id' => $id]); }