Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Warehouse {
- private int $id;
- private int $name;
- private float $latitude;
- private float $longitude;
- private int $capacity;
- private int $responsible_id;
- /**
- * Warehouse constructor.
- * @param int $id
- * @param int $name
- * @param float $latitude
- * @param float $longitude
- * @param int $capacity
- * @param int $responsible_id
- */
- public function __construct(int $id, int $name, float $latitude, float $longitude, int $capacity, int $responsible_id)
- {
- $this->id = $id;
- $this->name = $name;
- $this->latitude = $latitude;
- $this->longitude = $longitude;
- $this->capacity = $capacity;
- $this->responsible_id = $responsible_id;
- }
- /**
- * @return int
- */
- public function getId(): int
- {
- return $this->id;
- }
- /**
- * @param int $id
- */
- public function setId(int $id): void
- {
- $this->id = $id;
- }
- /**
- * @return int
- */
- public function getName(): int
- {
- return $this->name;
- }
- /**
- * @param int $name
- */
- public function setName(int $name): void
- {
- $this->name = $name;
- }
- /**
- * @return float
- */
- public function getLatitude(): float
- {
- return $this->latitude;
- }
- /**
- * @param float $latitude
- */
- public function setLatitude(float $latitude): void
- {
- $this->latitude = $latitude;
- }
- /**
- * @return float
- */
- public function getLongitude(): float
- {
- return $this->longitude;
- }
- /**
- * @param float $longitude
- */
- public function setLongitude(float $longitude): void
- {
- $this->longitude = $longitude;
- }
- /**
- * @return int
- */
- public function getCapacity(): int
- {
- return $this->capacity;
- }
- /**
- * @param int $capacity
- */
- public function setCapacity(int $capacity): void
- {
- $this->capacity = $capacity;
- }
- /**
- * @return int
- */
- public function getResponsibleId(): int
- {
- return $this->responsible_id;
- }
- /**
- * @param int $responsible_id
- */
- public function setResponsibleId(int $responsible_id): void
- {
- $this->responsible_id = $responsible_id;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement