<?php
namespace App\Entity;
use App\Repository\PayPageRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\SoftDeleteable\Traits\SoftDeleteableEntity;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity(repositoryClass=PayPageRepository::class)
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
*/
class PayPage
{
use SoftDeleteableEntity;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $page;
/**
* @ORM\ManyToOne(targetEntity=BpModel::class, inversedBy="payPages")
*/
private $bpModel;
/**
* @ORM\ManyToOne(targetEntity=Subscription::class, inversedBy="payPages")
*/
private $subscription;
public function getId(): ?int
{
return $this->id;
}
public function getPage(): ?int
{
return $this->page;
}
public function setPage(?int $page): self
{
$this->page = $page;
return $this;
}
public function getBpModel(): ?BpModel
{
return $this->bpModel;
}
public function setBpModel(?BpModel $bpModel): self
{
$this->bpModel = $bpModel;
return $this;
}
public function getSubscription(): ?Subscription
{
return $this->subscription;
}
public function setSubscription(?Subscription $subscription): self
{
$this->subscription = $subscription;
return $this;
}
}