mirror of
				https://github.com/getgrav/grav-plugin-admin.git
				synced 2025-10-31 10:25:50 +01:00 
			
		
		
		
	
		
			
	
	
		
			32 lines
		
	
	
		
			458 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			32 lines
		
	
	
		
			458 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
|  | <?php | ||
|  | namespace Grav\Plugin\Admin; | ||
|  | 
 | ||
|  | class ScssList { | ||
|  |     protected $list= []; | ||
|  | 
 | ||
|  |     public function __construct($item = null) | ||
|  |     { | ||
|  |         if ($item) { | ||
|  |             $this->add($item); | ||
|  |         } | ||
|  |     } | ||
|  | 
 | ||
|  |     public function all() | ||
|  |     { | ||
|  |         return $this->list; | ||
|  |     } | ||
|  | 
 | ||
|  |     public function add($item) | ||
|  |     { | ||
|  |         $this->list[] = $item; | ||
|  |     } | ||
|  | 
 | ||
|  |     public function remove($item) | ||
|  |     { | ||
|  |         if (in_array($item)) { | ||
|  |             unset($item); | ||
|  |         } | ||
|  |     } | ||
|  | 
 | ||
|  | } |