<?php/** * Copyright (c) 2001-present X-Cart Holdings LLC. All rights reserved. * See https://www.x-cart.com/license-agreement.html for license details. */namespace XLite\Model\OrderItem;use Doctrine\ORM\Mapping as ORM;/** * Surcharge * * @ORM\Entity * @ORM\Table (name="order_item_surcharges") */class Surcharge extends \XLite\Model\Base\Surcharge{ /** * Surcharge owner (order item) * * @var \XLite\Model\OrderItem * * @ORM\ManyToOne (targetEntity="XLite\Model\OrderItem", inversedBy="surcharges") * @ORM\JoinColumn (name="item_id", referencedColumnName="item_id", onDelete="CASCADE") */ protected $owner; /** * Get order * * @return \XLite\Model\Order */ public function getOrder() { return $this->getOwner()->getOrder(); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set type * * @param string $type * @return Surcharge */ public function setType($type) { $this->type = $type; return $this; } /** * Get type * * @return string */ public function getType() { return $this->type; } /** * Set code * * @param string $code * @return Surcharge */ public function setCode($code) { $this->code = $code; return $this; } /** * Get code * * @return string */ public function getCode() { return $this->code; } /** * Set class * * @param string $class * @return Surcharge */ public function setClass($class) { $this->class = $class; return $this; } /** * Get class * * @return string */ public function getClass() { return $this->class; } /** * Set include * * @param boolean $include * @return Surcharge */ public function setInclude($include) { $this->include = $include; return $this; } /** * Get include * * @return boolean */ public function getInclude() { return $this->include; } /** * Set available * * @param boolean $available * @return Surcharge */ public function setAvailable($available) { $this->available = $available; return $this; } /** * Get available * * @return boolean */ public function getAvailable() { return $this->available; } /** * Get value * * @return float */ public function getValue() { return $this->value; } /** * Set name * * @param string $name * @return Surcharge */ public function setName($name) { $this->name = $name; return $this; } /** * Set weight * * @param integer $weight * @return Surcharge */ public function setWeight($weight) { $this->weight = $weight; return $this; } /** * Get weight * * @return integer */ public function getWeight() { return $this->weight; } /** * Get owner * * @return \XLite\Model\OrderItem */ public function getOwner() { return $this->owner; }}