forked from GNUsocial/gnu-social
[AUTOGENERATED] Update auto generated code
This commit is contained in:
@@ -63,17 +63,17 @@ class ActivitypubActivity extends Entity
|
||||
return $this->activity_id;
|
||||
}
|
||||
|
||||
public function getActivityUri(): string
|
||||
{
|
||||
return $this->activity_uri;
|
||||
}
|
||||
|
||||
public function setActivityUri(string $activity_uri): self
|
||||
{
|
||||
$this->activity_uri = $activity_uri;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getActivityUri(): string
|
||||
{
|
||||
return $this->activity_uri;
|
||||
}
|
||||
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
|
@@ -57,36 +57,20 @@ class ActivitypubActor extends Entity
|
||||
private string $uri;
|
||||
private int $actor_id;
|
||||
private string $inbox_uri;
|
||||
private ?string $inbox_shared_uri = null;
|
||||
private string $url;
|
||||
private ?string $inbox_shared_uri;
|
||||
private ?string $url;
|
||||
private DateTimeInterface $created;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function getUri(): string
|
||||
{
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
public function setUri(string $uri): self
|
||||
{
|
||||
$this->uri = $uri;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getUrl(): string
|
||||
public function getUri(): string
|
||||
{
|
||||
return $this->url;
|
||||
}
|
||||
|
||||
public function setUrl(string $url): self
|
||||
{
|
||||
$this->url = $url;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getActorId(): int
|
||||
{
|
||||
return $this->actor_id;
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
public function setActorId(int $actor_id): self
|
||||
@@ -95,9 +79,9 @@ class ActivitypubActor extends Entity
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getInboxUri(): string
|
||||
public function getActorId(): int
|
||||
{
|
||||
return $this->inbox_uri;
|
||||
return $this->actor_id;
|
||||
}
|
||||
|
||||
public function setInboxUri(string $inbox_uri): self
|
||||
@@ -106,20 +90,31 @@ class ActivitypubActor extends Entity
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getInboxSharedUri(): ?string
|
||||
public function getInboxUri(): string
|
||||
{
|
||||
return $this->inbox_shared_uri;
|
||||
return $this->inbox_uri;
|
||||
}
|
||||
|
||||
public function setInboxSharedUri(?string $inbox_shared_uri = null): self
|
||||
public function setInboxSharedUri(?string $inbox_shared_uri): self
|
||||
{
|
||||
$this->inbox_shared_uri = $inbox_shared_uri;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCreated(): DateTimeInterface
|
||||
public function getInboxSharedUri(): ?string
|
||||
{
|
||||
return $this->created;
|
||||
return $this->inbox_shared_uri;
|
||||
}
|
||||
|
||||
public function setUrl(?string $url): self
|
||||
{
|
||||
$this->url = $url;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getUrl(): ?string
|
||||
{
|
||||
return $this->url;
|
||||
}
|
||||
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
@@ -128,9 +123,9 @@ class ActivitypubActor extends Entity
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getModified(): DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
@@ -138,6 +133,12 @@ class ActivitypubActor extends Entity
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
||||
// @codeCoverageIgnoreEnd
|
||||
// }}} Autocode
|
||||
|
||||
|
@@ -47,30 +47,25 @@ class ActivitypubObject extends Entity
|
||||
// {{{ Autocode
|
||||
// @codeCoverageIgnoreStart
|
||||
private string $object_uri;
|
||||
private int $object_id;
|
||||
private string $object_type;
|
||||
private int $object_id;
|
||||
private DateTimeInterface $created;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function getObjectUri(): string
|
||||
{
|
||||
return $this->object_uri;
|
||||
}
|
||||
|
||||
public function setObjectUri(string $object_uri): self
|
||||
{
|
||||
$this->object_uri = $object_uri;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getObjectId(): int
|
||||
public function getObjectUri(): string
|
||||
{
|
||||
return $this->object_id;
|
||||
return $this->object_uri;
|
||||
}
|
||||
|
||||
public function setObjectId(int $object_id): self
|
||||
public function setObjectType(string $object_type): self
|
||||
{
|
||||
$this->object_id = $object_id;
|
||||
$this->object_type = mb_substr($object_type, 0, 32);
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -79,12 +74,17 @@ class ActivitypubObject extends Entity
|
||||
return $this->object_type;
|
||||
}
|
||||
|
||||
public function setObjectType(string $object_type): self
|
||||
public function setObjectId(int $object_id): self
|
||||
{
|
||||
$this->object_type = $object_type;
|
||||
$this->object_id = $object_id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getObjectId(): int
|
||||
{
|
||||
return $this->object_id;
|
||||
}
|
||||
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
|
@@ -50,36 +50,31 @@ class ActivitypubRsa extends Entity
|
||||
// {{{ Autocode
|
||||
// @codeCoverageIgnoreStart
|
||||
private int $actor_id;
|
||||
private ?string $private_key = null;
|
||||
private ?string $private_key;
|
||||
private string $public_key;
|
||||
private DateTimeInterface $created;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function getActorId(): int
|
||||
{
|
||||
return $this->actor_id;
|
||||
}
|
||||
|
||||
public function setActorId(int $actor_id): self
|
||||
{
|
||||
$this->actor_id = $actor_id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPrivateKey(): string
|
||||
public function getActorId(): int
|
||||
{
|
||||
return $this->private_key;
|
||||
return $this->actor_id;
|
||||
}
|
||||
|
||||
public function setPrivateKey(string $private_key): self
|
||||
public function setPrivateKey(?string $private_key): self
|
||||
{
|
||||
$this->private_key = $private_key;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPublicKey(): string
|
||||
public function getPrivateKey(): ?string
|
||||
{
|
||||
return $this->public_key;
|
||||
return $this->private_key;
|
||||
}
|
||||
|
||||
public function setPublicKey(string $public_key): self
|
||||
@@ -88,9 +83,9 @@ class ActivitypubRsa extends Entity
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCreated(): DateTimeInterface
|
||||
public function getPublicKey(): string
|
||||
{
|
||||
return $this->created;
|
||||
return $this->public_key;
|
||||
}
|
||||
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
@@ -99,9 +94,9 @@ class ActivitypubRsa extends Entity
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getModified(): DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
@@ -109,6 +104,12 @@ class ActivitypubRsa extends Entity
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
||||
// @codeCoverageIgnoreEnd
|
||||
// }}} Autocode
|
||||
|
||||
|
Reference in New Issue
Block a user