Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

94 Zeilen
2.0KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Order;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\CaracoleBundle\Doctrine\Extension\ReductionInterface;
  5. use Lc\CaracoleBundle\Doctrine\Extension\ReductionTrait;
  6. use Lc\CaracoleBundle\Model\Reduction\ReductionCreditInterface;
  7. use Lc\SovBundle\Doctrine\EntityInterface;
  8. /**
  9. * @ORM\MappedSuperclass()
  10. */
  11. abstract class OrderReductionCreditModel implements ReductionInterface, EntityInterface, OrderReductionCreditInterface
  12. {
  13. use ReductionTrait;
  14. /**
  15. * @ORM\Column(type="string", length=255)
  16. */
  17. protected $title;
  18. /**
  19. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Order\OrderShopInterface", inversedBy="orderReductionCredits")
  20. * @ORM\JoinColumn(nullable=false)
  21. */
  22. protected $orderShop;
  23. /**
  24. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Reduction\ReductionCreditInterface")
  25. * @ORM\JoinColumn(nullable=false)
  26. */
  27. protected $reductionCredit;
  28. /**
  29. * @ORM\Column(type="string", length=255)
  30. */
  31. protected $type;
  32. public function __toString()
  33. {
  34. return $this->title;
  35. }
  36. public function getTitle(): ?string
  37. {
  38. return $this->title;
  39. }
  40. public function setTitle(string $title): self
  41. {
  42. $this->title = $title;
  43. return $this;
  44. }
  45. public function getOrderShop(): ?OrderShopInterface
  46. {
  47. return $this->orderShop;
  48. }
  49. public function setOrderShop(?OrderShopInterface $orderShop): self
  50. {
  51. $this->orderShop = $orderShop;
  52. return $this;
  53. }
  54. public function getReductionCredit(): ?ReductionCreditInterface
  55. {
  56. return $this->reductionCredit;
  57. }
  58. public function setReductionCredit(?ReductionCreditInterface $reductionCredit): self
  59. {
  60. $this->reductionCredit = $reductionCredit;
  61. return $this;
  62. }
  63. public function getType(): ?string
  64. {
  65. return $this->type;
  66. }
  67. public function setType(string $type): self
  68. {
  69. $this->type = $type;
  70. return $this;
  71. }
  72. }