[AUTOGENERATED] Update autogenerated code in module entities

This commit is contained in:
Hugo Sales 2020-09-07 23:47:09 +00:00 committed by Hugo Sales
parent a9b6bc78a6
commit cc758f6a8e
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
4 changed files with 177 additions and 39 deletions

View File

@ -43,9 +43,9 @@ class ForeignLink
private int $foreign_id;
private int $service;
private ?string $credentials;
private int $noticesync;
private int $friendsync;
private int $profilesync;
private int $noticesync = 1;
private int $friendsync = 2;
private int $profilesync = 1;
private ?DateTimeInterface $last_noticesync;
private ?DateTimeInterface $last_friendsync;
private DateTimeInterface $created;

View File

@ -35,6 +35,80 @@ namespace Plugin\ActivityPub\Entity;
class ActivityPubActor
{
// {{{ Autocode
private string $uri;
private int $profile_id;
private string $inboxuri;
private ?string $sharedInboxuri;
private ?DateTimeInterface $created;
private DateTimeInterface $modified;
public function setUri(string $uri): self
{
$this->uri = $uri;
return $this;
}
public function getUri(): string
{
return $this->uri;
}
public function setProfileId(int $profile_id): self
{
$this->profile_id = $profile_id;
return $this;
}
public function getProfileId(): int
{
return $this->profile_id;
}
public function setInboxuri(string $inboxuri): self
{
$this->inboxuri = $inboxuri;
return $this;
}
public function getInboxuri(): string
{
return $this->inboxuri;
}
public function setSharedInboxuri(?string $sharedInboxuri): self
{
$this->sharedInboxuri = $sharedInboxuri;
return $this;
}
public function getSharedInboxuri(): ?string
{
return $this->sharedInboxuri;
}
public function setCreated(?DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): ?DateTimeInterface
{
return $this->created;
}
public function setModified(DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTimeInterface
{
return $this->modified;
}
// }}} Autocode
/**
@ -291,42 +365,6 @@ class ActivityPubActor
return $this->sharedInboxuri;
}
/**
* Getter for uri property
*
* @return string URI
*
* @author Diogo Cordeiro <diogo@fc.up.pt>
*/
public function getUri(): string
{
return $this->uri;
}
/**
* Getter for url property
*
* @return string URL
*
* @author Diogo Cordeiro <diogo@fc.up.pt>
*/
public function getUrl(): string
{
return $this->getUri();
}
/**
* Getter for id property
*
* @return int
*
* @author Diogo Cordeiro <diogo@fc.up.pt>
*/
public function getID(): int
{
return $this->profile_id;
}
/**
* Ensures a valid Activitypub_profile when provided with a valid URI.
*

View File

@ -35,6 +35,68 @@ namespace Plugin\ActivityPub\Entity;
class ActivityPubCryptKey
{
// {{{ Autocode
private int $gsactor_id;
private ?string $private_key;
private string $public_key;
private ?DateTimeInterface $created;
private DateTimeInterface $modified;
public function setGsactorId(int $gsactor_id): self
{
$this->gsactor_id = $gsactor_id;
return $this;
}
public function getGsactorId(): int
{
return $this->gsactor_id;
}
public function setPrivateKey(?string $private_key): self
{
$this->private_key = $private_key;
return $this;
}
public function getPrivateKey(): ?string
{
return $this->private_key;
}
public function setPublicKey(string $public_key): self
{
$this->public_key = $public_key;
return $this;
}
public function getPublicKey(): string
{
return $this->public_key;
}
public function setCreated(?DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): ?DateTimeInterface
{
return $this->created;
}
public function setModified(DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTimeInterface
{
return $this->modified;
}
// }}} Autocode
/**

View File

@ -35,6 +35,44 @@ namespace Plugin\ActivityPub\Entity;
class ActivityPubFollowRequests
{
// {{{ Autocode
private int $local_gsactor_id;
private int $remote_gsactor_id;
private int $relation_id;
public function setLocalGsactorId(int $local_gsactor_id): self
{
$this->local_gsactor_id = $local_gsactor_id;
return $this;
}
public function getLocalGsactorId(): int
{
return $this->local_gsactor_id;
}
public function setRemoteGsactorId(int $remote_gsactor_id): self
{
$this->remote_gsactor_id = $remote_gsactor_id;
return $this;
}
public function getRemoteGsactorId(): int
{
return $this->remote_gsactor_id;
}
public function setRelationId(int $relation_id): self
{
$this->relation_id = $relation_id;
return $this;
}
public function getRelationId(): int
{
return $this->relation_id;
}
// }}} Autocode
public static function schemaDef()