mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 16:56:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			79 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			79 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Pterodactyl\Models\Objects;
 | |
| 
 | |
| class DeploymentObject
 | |
| {
 | |
|     /**
 | |
|      * @var bool
 | |
|      */
 | |
|     private $dedicated = false;
 | |
| 
 | |
|     /**
 | |
|      * @var array
 | |
|      */
 | |
|     private $locations = [];
 | |
| 
 | |
|     /**
 | |
|      * @var array
 | |
|      */
 | |
|     private $ports = [];
 | |
| 
 | |
|     /**
 | |
|      * @return bool
 | |
|      */
 | |
|     public function isDedicated(): bool
 | |
|     {
 | |
|         return $this->dedicated;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @param bool $dedicated
 | |
|      * @return $this
 | |
|      */
 | |
|     public function setDedicated(bool $dedicated)
 | |
|     {
 | |
|         $this->dedicated = $dedicated;
 | |
| 
 | |
|         return $this;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @return array
 | |
|      */
 | |
|     public function getLocations(): array
 | |
|     {
 | |
|         return $this->locations;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @param array $locations
 | |
|      * @return $this
 | |
|      */
 | |
|     public function setLocations(array $locations)
 | |
|     {
 | |
|         $this->locations = $locations;
 | |
| 
 | |
|         return $this;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @return array
 | |
|      */
 | |
|     public function getPorts(): array
 | |
|     {
 | |
|         return $this->ports;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @param array $ports
 | |
|      * @return $this
 | |
|      */
 | |
|     public function setPorts(array $ports)
 | |
|     {
 | |
|         $this->ports = $ports;
 | |
| 
 | |
|         return $this;
 | |
|     }
 | |
| }
 | 
