Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Packet
- {
- private int $id;
- private float $weight;
- private float $width;
- private float $height;
- private int $brittle;
- private User $user;
- private Warehouse $warehouse;
- /**
- * Packet constructor.
- * @param int $id
- * @param float $weight
- * @param float $width
- * @param float $height
- * @param int $brittle
- * @param User $user
- * @param Warehouse $warehouse
- */
- public function __construct(int $id, float $weight, float $width, float $height, int $brittle, User $user, Warehouse $warehouse)
- {
- $this->id = $id;
- $this->weight = $weight;
- $this->width = $width;
- $this->height = $height;
- $this->brittle = $brittle;
- $this->user = $user;
- $this->warehouse = $warehouse;
- }
- /**
- * @return int
- */
- public function getId(): int
- {
- return $this->id;
- }
- /**
- * @param int $id
- */
- public function setId(int $id): void
- {
- $this->id = $id;
- }
- /**
- * @return float
- */
- public function getWeight(): float
- {
- return $this->weight;
- }
- /**
- * @param float $weight
- */
- public function setWeight(float $weight): void
- {
- $this->weight = $weight;
- }
- /**
- * @return float
- */
- public function getWidth(): float
- {
- return $this->width;
- }
- /**
- * @param float $width
- */
- public function setWidth(float $width): void
- {
- $this->width = $width;
- }
- /**
- * @return float
- */
- public function getHeight(): float
- {
- return $this->height;
- }
- /**
- * @param float $height
- */
- public function setHeight(float $height): void
- {
- $this->height = $height;
- }
- /**
- * @return int
- */
- public function getBrittle(): int
- {
- return $this->brittle;
- }
- /**
- * @param int $brittle
- */
- public function setBrittle(int $brittle): void
- {
- $this->brittle = $brittle;
- }
- /**
- * @return User
- */
- public function getUser(): User
- {
- return $this->user;
- }
- /**
- * @param User $user
- */
- public function setUser(User $user): void
- {
- $this->user = $user;
- }
- /**
- * @return Warehouse
- */
- public function getWarehouse(): Warehouse
- {
- return $this->warehouse;
- }
- /**
- * @param Warehouse $warehouse
- */
- public function setWarehouse(Warehouse $warehouse): void
- {
- $this->warehouse = $warehouse;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement