diff options
Diffstat (limited to 'Digitigrade/Model/ActorEndpoints.php')
| -rw-r--r-- | Digitigrade/Model/ActorEndpoints.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Digitigrade/Model/ActorEndpoints.php b/Digitigrade/Model/ActorEndpoints.php new file mode 100644 index 0000000..8821d1c --- /dev/null +++ b/Digitigrade/Model/ActorEndpoints.php @@ -0,0 +1,27 @@ +<?php +namespace Digitigrade\Model; + +use Digitigrade\Model; + +class ActorEndpoints extends Model { + public ?int $actorId; + public string $basicFeed; + public ?string $fullFeed; + public ?string $follow; + public ?string $unfollow; + public ?string $block; + public ?string $unblock; + public ?string $subscribe; + public ?string $unsubscribe; + + protected function setOwnerId(int $id) { + $this->actorId = $id; + } + + protected function getUpdateWhereClause($db): ?string { + if (self::findWhere('actor_id = ?', [$this->actorId]) != null) { + return "actor_id = $this->actorId"; + } + return null; + } +}
\ No newline at end of file |
