From 86c20036c0062c55913476f06cf50909319143ad Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Sun, 20 Jan 2019 15:35:30 +0800 Subject: [PATCH] Add SAP battery entities #172 --- src/Entity/SAPBattery.php | 74 ++++++++++++++++++++++++++++++++++ src/Entity/SAPBatteryBrand.php | 73 +++++++++++++++++++++++++++++++++ src/Entity/SAPBatterySize.php | 73 +++++++++++++++++++++++++++++++++ 3 files changed, 220 insertions(+) create mode 100644 src/Entity/SAPBattery.php create mode 100644 src/Entity/SAPBatteryBrand.php create mode 100644 src/Entity/SAPBatterySize.php diff --git a/src/Entity/SAPBattery.php b/src/Entity/SAPBattery.php new file mode 100644 index 00000000..4a482b43 --- /dev/null +++ b/src/Entity/SAPBattery.php @@ -0,0 +1,74 @@ +id = $id; + return $this; + } + + public function getID() + { + return $this->id; + } + + public function setBrand($brand) + { + $this->brand = $brand; + return $this; + } + + public function getBrand() + { + return $this->brand; + } + + public function setSize($size) + { + $this->size = $size; + return $this; + } + + public function getSize() + { + return $this->size; + } +} diff --git a/src/Entity/SAPBatteryBrand.php b/src/Entity/SAPBatteryBrand.php new file mode 100644 index 00000000..bd7c6a6b --- /dev/null +++ b/src/Entity/SAPBatteryBrand.php @@ -0,0 +1,73 @@ +batteries = new ArrayCollection(); + } + + public function getID() + { + return $this->id; + } + + public function setName($name) + { + $this->name = $name; + return $this; + } + + public function getName() + { + return $this->name; + } + + public function addBattery(Battery $battery) + { + $this->batteries->add($battery); + return $this; + } + + public function clearBatteries() + { + $this->batteries->clear(); + return $this; + } + + public function getBatteries() + { + return $this->batteries; + } +} diff --git a/src/Entity/SAPBatterySize.php b/src/Entity/SAPBatterySize.php new file mode 100644 index 00000000..1f38ca96 --- /dev/null +++ b/src/Entity/SAPBatterySize.php @@ -0,0 +1,73 @@ +batteries = new ArrayCollection(); + } + + public function getID() + { + return $this->id; + } + + public function setName($name) + { + $this->name = $name; + return $this; + } + + public function getName() + { + return $this->name; + } + + public function addBattery(Battery $battery) + { + $this->batteries->add($battery); + return $this; + } + + public function clearBatteries() + { + $this->batteries->clear(); + return $this; + } + + public function getBatteries() + { + return $this->batteries; + } +}