public function setHeight($height) { if (!is_numeric($height)) { throw new Exception('Height must be numeric'); } $this->height = $height; return $this; }