mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 02:46:55 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			913 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			913 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\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;
 | |
|     }
 | |
| }
 | 
