diff options
| author | winter | 2024-12-13 23:53:23 +0000 |
|---|---|---|
| committer | winter | 2024-12-13 23:53:23 +0000 |
| commit | 2713c1f73a39d4106936d4c52bf8f18d810d7f3c (patch) | |
| tree | ca3ab4c78b7a45fe4ddc218ce4e45f181cd179e2 /Digitigrade/Model/InstanceEndpoints.php | |
| parent | ae37b73d1f15ffe5c4c9a32c5de349cd746ebc48 (diff) | |
add instance information
Diffstat (limited to 'Digitigrade/Model/InstanceEndpoints.php')
| -rw-r--r-- | Digitigrade/Model/InstanceEndpoints.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Digitigrade/Model/InstanceEndpoints.php b/Digitigrade/Model/InstanceEndpoints.php new file mode 100644 index 0000000..d2b0b24 --- /dev/null +++ b/Digitigrade/Model/InstanceEndpoints.php @@ -0,0 +1,23 @@ +<?php +namespace Digitigrade\Model; + +use Digitigrade\Model; + +class InstanceEndpoints extends Model { + public ?int $instanceId; + public ?string $auth; + public ?string $report; + public ?string $subscribe; + public ?string $unsubscribe; + + protected function setOwnerId(int $id) { + $this->instanceId = $id; + } + + protected function getUpdateWhereClause($db): ?string { + if (self::findWhere('instance_id = ?', [$this->instanceId]) != null) { + return "instance_id = $this->instanceId"; + } + return null; + } +}
\ No newline at end of file |
