app/Plugin/EccubePaymentLite42/Entity/ProductClassRegularCycle.php line 15

Open in your IDE?
  1. <?php
  2. namespace Plugin\EccubePaymentLite42\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Eccube\Entity\AbstractEntity;
  5. /**
  6. * @ORM\Table(name="plg_eccube_payment_lite42_product_classes_regular_cycles")
  7. * @ORM\InheritanceType("SINGLE_TABLE")
  8. * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  9. * @ORM\HasLifecycleCallbacks()
  10. * @ORM\Entity(repositoryClass="Plugin\EccubePaymentLite42\Repository\ProductClassRegularCycleRepository")
  11. */
  12. class ProductClassRegularCycle extends AbstractEntity
  13. {
  14. public function __toString()
  15. {
  16. return (string) $this->getRegularCycle();
  17. }
  18. /**
  19. * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  20. * @ORM\Id
  21. * @ORM\GeneratedValue(strategy="IDENTITY")
  22. */
  23. private $id;
  24. /**
  25. * @ORM\ManyToOne(targetEntity="Plugin\EccubePaymentLite42\Entity\RegularCycle")
  26. * @ORM\JoinColumn(name="regular_cycle_id", referencedColumnName="id")
  27. */
  28. private $RegularCycle;
  29. /**
  30. * @ORM\ManyToOne(targetEntity="Eccube\Entity\ProductClass")
  31. * @ORM\JoinColumn(name="product_class_id", referencedColumnName="id")
  32. */
  33. private $ProductClass;
  34. public function getId()
  35. {
  36. return $this->id;
  37. }
  38. public function getRegularCycle(): RegularCycle
  39. {
  40. return $this->RegularCycle;
  41. }
  42. public function setRegularCycle($RegularCycle)
  43. {
  44. $this->RegularCycle = $RegularCycle;
  45. return $this;
  46. }
  47. public function getProductClass()
  48. {
  49. return $this->ProductClass;
  50. }
  51. public function setProductClass($ProductClass)
  52. {
  53. $this->ProductClass = $ProductClass;
  54. return $this;
  55. }
  56. }