<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\System\FuturePackRepository")
*
* @ORM\Table(name="ps_future_pack")
*/
class FuturePack
{
/**
* @var int
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(type="integer", name="id_future_pack")
*/
private $id;
/**
* @var Customer|null
*
* @ORM\ManyToOne(targetEntity="Customer", inversedBy="futurePacks")
*
* @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer", nullable=true)
*/
private $customer;
/**
* @var int|null
*
* @ORM\Column(type="integer", nullable=true)
*/
private $idPack;
/**
* @var \DateTime|null
*
* @ORM\Column(type="date", nullable=true)
*/
private $dateCsv;
/**
* @var bool|null
*
* @ORM\Column(type="boolean", nullable=true, options={"default":0})
*/
private $active;
public function __construct()
{
$this->active = false;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*
* @return FuturePack
*/
public function setId(int $id): FuturePack
{
$this->id = $id;
return $this;
}
/**
* @return Customer|null
*/
public function getCustomer(): ?Customer
{
return $this->customer;
}
/**
* @param Customer|null $customer
*
* @return FuturePack
*/
public function setCustomer(?Customer $customer): FuturePack
{
$this->customer = $customer;
return $this;
}
/**
* @return int|null
*/
public function getIdPack(): ?int
{
return $this->idPack;
}
/**
* @param int|null $idPack
*
* @return FuturePack
*/
public function setIdPack(?int $idPack): FuturePack
{
$this->idPack = $idPack;
return $this;
}
/**
* @return \DateTime|null
*/
public function getDateCsv(): ?\DateTime
{
return $this->dateCsv;
}
/**
* @param \DateTime|null $dateCsv
*
* @return FuturePack
*/
public function setDateCsv(?\DateTime $dateCsv): FuturePack
{
$this->dateCsv = $dateCsv;
return $this;
}
/**
* @return bool|null
*/
public function isActive(): ?bool
{
return $this->active;
}
/**
* @param bool|null $active
*
* @return FuturePack
*/
public function setActive(?bool $active): FuturePack
{
$this->active = $active;
return $this;
}
}