src/Entity/PayPage.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PayPageRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\SoftDeleteable\Traits\SoftDeleteableEntity;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. /**
  8.  * @ORM\Entity(repositoryClass=PayPageRepository::class)
  9.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  10.  */
  11. class PayPage
  12. {
  13.     use SoftDeleteableEntity;
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="integer", nullable=true)
  22.      */
  23.     private $page;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=BpModel::class, inversedBy="payPages")
  26.      */
  27.     private $bpModel;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=Subscription::class, inversedBy="payPages")
  30.      */
  31.     private $subscription;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getPage(): ?int
  37.     {
  38.         return $this->page;
  39.     }
  40.     public function setPage(?int $page): self
  41.     {
  42.         $this->page $page;
  43.         return $this;
  44.     }
  45.     public function getBpModel(): ?BpModel
  46.     {
  47.         return $this->bpModel;
  48.     }
  49.     public function setBpModel(?BpModel $bpModel): self
  50.     {
  51.         $this->bpModel $bpModel;
  52.         return $this;
  53.     }
  54.     public function getSubscription(): ?Subscription
  55.     {
  56.         return $this->subscription;
  57.     }
  58.     public function setSubscription(?Subscription $subscription): self
  59.     {
  60.         $this->subscription $subscription;
  61.         return $this;
  62.     }
  63. }