Files
pterodactyl-panel/app/Services/Activity/ActivityLogTargetableService.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

54 lines
947 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Services\Activity;
use Illuminate\Database\Eloquent\Model;
class ActivityLogTargetableService
{
protected ?Model $actor = null;
protected ?Model $subject = null;
protected ?int $apiKeyId = null;
public function setActor(Model $actor): void
{
$this->actor = $actor;
}
public function setSubject(Model $subject): void
{
$this->subject = $subject;
}
public function setApiKeyId(?int $apiKeyId): void
{
$this->apiKeyId = $apiKeyId;
}
public function actor(): ?Model
{
return $this->actor;
}
public function subject(): ?Model
{
return $this->subject;
}
public function apiKeyId(): ?int
{
return $this->apiKeyId;
}
public function reset(): void
{
$this->actor = null;
$this->subject = null;
$this->apiKeyId = null;
}
}