Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Services/Activity/ActivityLogTargetableService.php
10266 views
1
<?php
2
3
namespace Pterodactyl\Services\Activity;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class ActivityLogTargetableService
8
{
9
protected ?Model $actor = null;
10
11
protected ?Model $subject = null;
12
13
protected ?int $apiKeyId = null;
14
15
public function setActor(Model $actor): void
16
{
17
$this->actor = $actor;
18
}
19
20
public function setSubject(Model $subject): void
21
{
22
$this->subject = $subject;
23
}
24
25
public function setApiKeyId(?int $apiKeyId): void
26
{
27
$this->apiKeyId = $apiKeyId;
28
}
29
30
public function actor(): ?Model
31
{
32
return $this->actor;
33
}
34
35
public function subject(): ?Model
36
{
37
return $this->subject;
38
}
39
40
public function apiKeyId(): ?int
41
{
42
return $this->apiKeyId;
43
}
44
45
public function reset(): void
46
{
47
$this->actor = null;
48
$this->subject = null;
49
$this->apiKeyId = null;
50
}
51
}
52
53