mirror of
https://github.com/friendica/friendica
synced 2025-04-30 11:04:29 +02:00
set intro::duplex deprecated because of no usage
This commit is contained in:
parent
d67b676ce5
commit
f5786a8f4f
7 changed files with 5 additions and 18 deletions
|
@ -71,7 +71,6 @@ class Introduction extends BaseDepository
|
|||
'contact-id' => $introduction->cid,
|
||||
'suggest-cid' => $introduction->sid,
|
||||
'knowyou' => $introduction->knowyou ? 1 : 0,
|
||||
'duplex' => $introduction->duplex ? 1 : 0,
|
||||
'note' => $introduction->note,
|
||||
'hash' => $introduction->hash,
|
||||
'ignore' => $introduction->ignore ? 1 : 0,
|
||||
|
|
|
@ -28,7 +28,6 @@ use Friendica\BaseEntity;
|
|||
* @property-read int $cid
|
||||
* @property-read int|null $sid
|
||||
* @property-read bool $knowyou
|
||||
* @property-read bool $duplex
|
||||
* @property-read string $note
|
||||
* @property-read string $hash
|
||||
* @property-read \DateTime $datetime
|
||||
|
@ -45,8 +44,6 @@ class Introduction extends BaseEntity
|
|||
protected $sid;
|
||||
/** @var bool */
|
||||
protected $knowyou;
|
||||
/** @var bool */
|
||||
protected $duplex;
|
||||
/** @var string */
|
||||
protected $note;
|
||||
/** @var string */
|
||||
|
@ -63,20 +60,18 @@ class Introduction extends BaseEntity
|
|||
* @param int $cid
|
||||
* @param int|null $sid
|
||||
* @param bool $knowyou
|
||||
* @param bool $duplex
|
||||
* @param string $note
|
||||
* @param string $hash
|
||||
* @param \DateTime $datetime
|
||||
* @param bool $ignore
|
||||
* @param int|null $id
|
||||
*/
|
||||
public function __construct(int $uid, int $cid, ?int $sid, bool $knowyou, bool $duplex, string $note, string $hash, \DateTime $datetime, bool $ignore, ?int $id)
|
||||
public function __construct(int $uid, int $cid, ?int $sid, bool $knowyou, string $note, string $hash, \DateTime $datetime, bool $ignore, ?int $id)
|
||||
{
|
||||
$this->uid = $uid;
|
||||
$this->cid = $cid;
|
||||
$this->sid = $sid;
|
||||
$this->knowyou = $knowyou;
|
||||
$this->duplex = $duplex;
|
||||
$this->note = $note;
|
||||
$this->hash = $hash;
|
||||
$this->datetime = $datetime;
|
||||
|
|
|
@ -39,7 +39,6 @@ class Introduction extends BaseFactory implements ICanCreateFromTableRow
|
|||
$row['contact-id'] ?? 0,
|
||||
$row['suggest-cid'] ?? null,
|
||||
!empty($row['knowyou']),
|
||||
!empty($row['duplex']),
|
||||
$row['note'] ?? '',
|
||||
$row['hash'] ?? '',
|
||||
new \DateTime($row['datetime'] ?? 'now', new \DateTimeZone('UTC')),
|
||||
|
@ -53,15 +52,13 @@ class Introduction extends BaseFactory implements ICanCreateFromTableRow
|
|||
int $cid,
|
||||
string $note,
|
||||
int $sid = null,
|
||||
bool $knowyou = false,
|
||||
bool $duplex = false
|
||||
bool $knowyou = false
|
||||
): Entity\Introduction {
|
||||
return $this->createFromTableRow([
|
||||
'uid' => $uid,
|
||||
'suggest-cid' => $sid,
|
||||
'contact-id' => $cid,
|
||||
'knowyou' => $knowyou,
|
||||
'duplex' => $duplex,
|
||||
'note' => $note,
|
||||
'hash' => Strings::getRandomHex(),
|
||||
'datetime' => DateTimeFormat::utcNow(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue