SHARE
TWEET

warehouse

a guest Mar 26th, 2020 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.  
  4. class Warehouse
  5. {
  6.     private int $id;
  7.     private string $name;
  8.     private float $latitude;
  9.     private float $longitude;
  10.     private int $capacity;
  11.     private User $reponsible;
  12.  
  13.     /**
  14.      * Warehouse constructor.
  15.      * @param int $id
  16.      * @param string $name
  17.      * @param float $latitude
  18.      * @param float $longitude
  19.      * @param int $capacity
  20.      * @param User $reponsible
  21.      */
  22.     public function __construct(int $id, string $name, float $latitude, float $longitude, int $capacity, User $reponsible)
  23.     {
  24.         $this->id = $id;
  25.         $this->name = $name;
  26.         $this->latitude = $latitude;
  27.         $this->longitude = $longitude;
  28.         $this->capacity = $capacity;
  29.         $this->reponsible = $reponsible;
  30.     }
  31.  
  32.     /**
  33.      * @return int
  34.      */
  35.     public function getId(): int
  36.     {
  37.         return $this->id;
  38.     }
  39.  
  40.     /**
  41.      * @param int $id
  42.      */
  43.     public function setId(int $id): void
  44.     {
  45.         $this->id = $id;
  46.     }
  47.  
  48.     /**
  49.      * @return string
  50.      */
  51.     public function getName(): string
  52.     {
  53.         return $this->name;
  54.     }
  55.  
  56.     /**
  57.      * @param string $name
  58.      */
  59.     public function setName(string $name): void
  60.     {
  61.         $this->name = $name;
  62.     }
  63.  
  64.     /**
  65.      * @return float
  66.      */
  67.     public function getLatitude(): float
  68.     {
  69.         return $this->latitude;
  70.     }
  71.  
  72.     /**
  73.      * @param float $latitude
  74.      */
  75.     public function setLatitude(float $latitude): void
  76.     {
  77.         $this->latitude = $latitude;
  78.     }
  79.  
  80.     /**
  81.      * @return float
  82.      */
  83.     public function getLongitude(): float
  84.     {
  85.         return $this->longitude;
  86.     }
  87.  
  88.     /**
  89.      * @param float $longitude
  90.      */
  91.     public function setLongitude(float $longitude): void
  92.     {
  93.         $this->longitude = $longitude;
  94.     }
  95.  
  96.     /**
  97.      * @return int
  98.      */
  99.     public function getCapacity(): int
  100.     {
  101.         return $this->capacity;
  102.     }
  103.  
  104.     /**
  105.      * @param int $capacity
  106.      */
  107.     public function setCapacity(int $capacity): void
  108.     {
  109.         $this->capacity = $capacity;
  110.     }
  111.  
  112.     /**
  113.      * @return User
  114.      */
  115.     public function getReponsible(): User
  116.     {
  117.         return $this->reponsible;
  118.     }
  119.  
  120.     /**
  121.      * @param User $reponsible
  122.      */
  123.     public function setReponsible(User $reponsible): void
  124.     {
  125.         $this->reponsible = $reponsible;
  126.     }
  127.    
  128.    
  129.  
  130.  
  131. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top