getPounds())) { $weight += $this->getPounds(); } if (!empty($this->getOunces())) { $weight += ($this->getOunces() / 16); } if ($weight == 0) { return null; } return $weight; } public function getPounds() { return $this->pounds ?? 0; } public function getOunces() { return $this->ounces ?? 0; } public function setWeight($pounds) { return $this->setPounds($pounds)->setOunces(0); } /** * @param mixed $pounds * @return $this */ public function setPounds($pounds) { $this->pounds = $pounds; return $this; } /** * @param mixed $ounces * @return $this */ public function setOunces($ounces) { $this->ounces = $ounces; return $this; } /** * @return mixed */ public function getWidth() { return $this->width; } /** * @param mixed $width * @return $this */ public function setWidth($width) { $this->width = $width; return $this; } /** * @return mixed */ public function getLength() { return $this->length; } /** * @param mixed $length * @return $this */ public function setLength($length) { $this->length = $length; return $this; } /** * @return mixed */ public function getHeight() { return $this->height; } /** * @param mixed $height * @return $this */ public function setHeight($height) { $this->height = $height; return $this; } }