mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 04:26:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			500 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			500 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace App\Features;
 | 
						|
 | 
						|
use Filament\Actions\Action;
 | 
						|
 | 
						|
abstract class Feature
 | 
						|
{
 | 
						|
    /** you need to agree to the eula in order to run the server */
 | 
						|
    abstract public function listeners(): array;
 | 
						|
 | 
						|
    /** eula */
 | 
						|
    abstract public function featureName(): string;
 | 
						|
 | 
						|
    abstract public function action(): Action;
 | 
						|
 | 
						|
    public function matchesListeners(string $line): bool
 | 
						|
    {
 | 
						|
        return collect(static::listeners())->contains(fn ($value) => str($line)->lower->contains($value));
 | 
						|
    }
 | 
						|
}
 |