<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\System\NewsletterRepository")
*
* @ORM\Table(name="ps_newsletter")
*/
class Newsletter
{
public const WHOLESALE = 1;
public const NONE = 8;
/**
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(type="integer", name="id")
*/
private int $id;
/**
* @ORM\Column(type="string", name="email", length=255)
*/
private string $email;
/**
* @ORM\Column(type="datetime", options={"default":"CURRENT_TIMESTAMP"}, name="newsletter_date_add")
*/
private \DateTime $dateAdd;
/**
* @ORM\Column(type="string", name="ip_registration_newsletter", length=15)
*/
private string $ipRegister;
/**
* @ORM\Column(type="boolean", options={"unsigned":true, "default":0})
*/
private ?bool $active;
/**
* @ORM\ManyToOne(targetEntity="Language")
*
* @ORM\JoinColumn(name="id_lang", referencedColumnName="id_lang")
*/
private ?Language $language;
/**
* @ORM\Column(type="string", name="sectores", nullable=true)
*/
private ?string $sections;
/**
* @ORM\Column(type="string", name="servicios", nullable=true)
*/
private ?string $services;
/**
* @deprecated
*
* @ORM\Column(type="boolean", nullable=true, options={"default":0})
*/
private ?bool $newStock;
/**
* @deprecated
*
* @ORM\Column(type="boolean", nullable=true, options={"default":0})
*/
private ?bool $newProduct;
/**
* @deprecated
*
* @ORM\Column(type="boolean", nullable=true, options={"default":0})
*/
private ?bool $priceChange;
/**
* @deprecated
*
* @ORM\Column(type="boolean", nullable=true, options={"default":0})
*/
private ?bool $newsletterGestor;
public function getId(): int
{
return $this->id;
}
public function getEmail(): string
{
return $this->email;
}
public function setEmail(string $email): void
{
$this->email = $email;
}
public function getActive(): ?bool
{
return $this->active;
}
public function setActive(?bool $active): void
{
$this->active = $active;
}
public function getLanguage(): ?Language
{
return $this->language;
}
public function setLanguage(Language $language): void
{
$this->language = $language;
}
public function getDateAdd(): \DateTime
{
return $this->dateAdd;
}
public function setDateAdd(\DateTime $dateAdd): void
{
$this->dateAdd = $dateAdd;
}
public function getIpRegister(): string
{
return $this->ipRegister;
}
public function setIpRegister(string $ipRegister): void
{
$this->ipRegister = $ipRegister;
}
public function getSections(): ?string
{
return $this->sections;
}
public function setSections(?string $sections): void
{
$this->sections = $sections;
}
public function getServices(): ?string
{
return $this->services;
}
public function setServices(?string $services): void
{
$this->services = $services;
}
public function getNewStock(): ?bool
{
return $this->newStock;
}
public function setNewStock(?bool $newStock): Newsletter
{
$this->newStock = $newStock;
return $this;
}
public function getNewProduct(): ?bool
{
return $this->newProduct;
}
public function setNewProduct(?bool $newProduct): Newsletter
{
$this->newProduct = $newProduct;
return $this;
}
public function getPriceChange(): ?bool
{
return $this->priceChange;
}
public function setPriceChange(?bool $priceChange): Newsletter
{
$this->priceChange = $priceChange;
return $this;
}
public function getNewsletterGestor(): ?bool
{
return $this->newsletterGestor;
}
public function setNewsletterGestor(?bool $newsletterGestor): Newsletter
{
$this->newsletterGestor = $newsletterGestor;
return $this;
}
}