|
- <?php
-
- namespace Lc\CaracoleBundle\Model\Order;
-
- use Doctrine\ORM\Mapping as ORM;
- use Lc\CaracoleBundle\Doctrine\Extension\ReductionCartPropertyInterface;
- use Lc\CaracoleBundle\Doctrine\Extension\ReductionCartPropertyTrait;
- use Lc\CaracoleBundle\Doctrine\Extension\ReductionTrait;
- use Lc\CaracoleBundle\Doctrine\Extension\ReductionInterface;
- use Lc\CaracoleBundle\Model\Reduction\ReductionCartInterface;
- use Lc\SovBundle\Doctrine\EntityInterface;
-
- /**
- * @ORM\MappedSuperclass()
- */
- abstract class OrderReductionCartModel implements EntityInterface, ReductionInterface, ReductionCartPropertyInterface
- {
- use ReductionTrait;
- use ReductionCartPropertyTrait;
-
- /**
- * @ORM\Column(type="string", length=255)
- */
- protected $title;
-
- /**
- * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Order\OrderShopInterface", inversedBy="orderReductionCarts")
- * @ORM\JoinColumn(nullable=false)
- */
- protected $orderShop;
-
- /**
- * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Reduction\ReductionCartInterface")
- * @ORM\JoinColumn(nullable=false)
- */
- protected $reductionCart;
-
- /**
- * @ORM\Column(type="string", length=255, nullable=true)
- */
- protected $codeUsed;
-
- public function __toString()
- {
- return $this->title;
- }
-
- public function getTitle(): ?string
- {
- return $this->title;
- }
-
- public function setTitle(string $title): self
- {
- $this->title = $title;
-
- return $this;
- }
-
- public function getOrderShop(): ?OrderShopInterface
- {
- return $this->orderShop;
- }
-
- public function setOrderShop(?OrderShopInterface $orderShop): self
- {
- $this->orderShop = $orderShop;
-
- return $this;
- }
-
- public function getReductionCart(): ?ReductionCartInterface
- {
- return $this->reductionCart;
- }
-
- public function setReductionCart(?ReductionCartInterface $reductionCart): self
- {
- $this->reductionCart = $reductionCart;
-
- return $this;
- }
-
- public function getCodeUsed(): ?string
- {
- return $this->codeUsed;
- }
-
- public function setCodeUsed(?string $codeUsed): self
- {
- $this->codeUsed = $codeUsed;
-
- return $this;
- }
-
- }
|