src/Entity/Marketing/EmailSubscribe/Subscription.php line 19
<?php
namespace App\Entity\Marketing\EmailSubscribe;
use App\Entity\Traits\ActiveTrait;
use App\Entity\Traits\TrackerFields;
use App\Entity\Traits\UserCreatedInterface;
use App\Entity\Traits\UserUpdatedInterface;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* Class Subscription
* @package App\Entity\Marketing\EmailSubscribe
*/
#[ORM\Table(name: 'subscribe_subscription')]
#[ORM\Entity(repositoryClass: 'App\Repository\Marketing\EmailSubscribe\SubscriptionRepository')]
#[ORM\HasLifecycleCallbacks]
class Subscription implements UserUpdatedInterface, UserCreatedInterface
{
use TrackerFields;
use ActiveTrait;
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string')]
private $caption;
/**
* @var ?string
*/
#[ORM\Column(type: 'text', nullable: true)]
private $page_description;
#[ORM\Column(type: 'string')]
private $slug;
/**
* @var Collection|Subscriber[]
*/
#[ORM\OneToMany(targetEntity: 'App\Entity\Marketing\EmailSubscribe\Subscriber', mappedBy: 'subscription')]
private $subscribers;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id): void
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getCaption()
{
return $this->caption;
}
/**
* @param mixed $caption
*/
public function setCaption($caption): void
{
$this->caption = $caption;
}
/**
* @return mixed
*/
public function getSlug()
{
return $this->slug;
}
/**
* @param mixed $slug
*/
public function setSlug($slug): void
{
$this->slug = $slug;
}
/**
* @return Subscriber[]|Collection
*/
public function getSubscribers()
{
return $this->subscribers;
}
/**
* @param Subscriber[]|Collection $subscribers
*/
public function setSubscribers($subscribers): void
{
$this->subscribers = $subscribers;
}
/**
* @return string|null
*/
public function getPageDescription(): ?string
{
return $this->page_description;
}
/**
* @param string|null $page_description
*/
public function setPageDescription(?string $page_description): void
{
$this->page_description = $page_description;
}
}