SHARE
TWEET

Untitled

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