mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Fixings & add tests
This commit is contained in:
parent
ed184bd592
commit
690369cc4b
4 changed files with 132 additions and 23 deletions
|
@ -26,7 +26,6 @@ use Friendica\BaseEntity;
|
|||
/**
|
||||
* @property-read int $uid
|
||||
* @property-read int $sid
|
||||
* @property-read int|null $fid
|
||||
* @property-read int|null $cid
|
||||
* @property-read bool $knowyou
|
||||
* @property-read bool $duplex
|
||||
|
@ -43,8 +42,6 @@ class Introduction extends BaseEntity
|
|||
/** @var int */
|
||||
protected $sid;
|
||||
/** @var int|null */
|
||||
protected $fid;
|
||||
/** @var int|null */
|
||||
protected $cid;
|
||||
/** @var bool */
|
||||
protected $knowyou;
|
||||
|
@ -64,7 +61,6 @@ class Introduction extends BaseEntity
|
|||
/**
|
||||
* @param int $uid
|
||||
* @param int $sid
|
||||
* @param int|null $fid
|
||||
* @param int|null $cid
|
||||
* @param bool $knowyou
|
||||
* @param bool $duplex
|
||||
|
@ -74,18 +70,18 @@ class Introduction extends BaseEntity
|
|||
* @param bool $ignore
|
||||
* @param int|null $id
|
||||
*/
|
||||
public function __construct(int $uid, int $sid, ?int $fid, ?int $cid, bool $knowyou, bool $duplex, string $note, string $hash, \DateTime $datetime, bool $ignore, ?int $id)
|
||||
public function __construct(int $uid, int $sid, ?int $cid, bool $knowyou, bool $duplex, string $note, string $hash, \DateTime $datetime, bool $ignore, ?int $id)
|
||||
{
|
||||
$this->uid = $uid;
|
||||
$this->sid = $sid;
|
||||
$this->fid = $fid;
|
||||
$this->cid = $cid;
|
||||
$this->knowyou = $knowyou;
|
||||
$this->duplex = $duplex;
|
||||
$this->note = $note;
|
||||
$this->hash = $hash;
|
||||
$this->ignore = $ignore;
|
||||
$this->id = $id;
|
||||
$this->uid = $uid;
|
||||
$this->sid = $sid;
|
||||
$this->cid = $cid;
|
||||
$this->knowyou = $knowyou;
|
||||
$this->duplex = $duplex;
|
||||
$this->note = $note;
|
||||
$this->hash = $hash;
|
||||
$this->datetime = $datetime;
|
||||
$this->ignore = $ignore;
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue