<?php
declare(strict_types=1);
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="customer_information_update")
*
* @ORM\Entity(repositoryClass="App\Repository\System\CustomerInformationUpdateRepository")
*/
class CustomerInformationUpdate
{
public const CUSTOMER_TYPE = 'Customer';
public const ADDRESS_TYPE = 'Address';
public const CATALOG_TYPE = 'Catalog';
public const ROLE_TYPE = 'Role';
public const SERVICE_TYPE = 'Service';
public const SERVICE_PARAMETERS_TYPE = 'ServiceParameters';
public const RMA_TYPE = 'RMA';
public const FREE_ORDER_TYPE = 'FreeOrder';
/**
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(type="integer", name="id_log")
*/
private int $id;
/**
* @ORM\Column(type="integer", name="id_customer", nullable=false)
*/
private int $customerId;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private ?\DateTime $dateAdd;
/**
* @ORM\ManyToOne(targetEntity="Employee")
*
* @ORM\JoinColumn(name="who_change", referencedColumnName="id_employee")
*/
private Employee $employee;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private ?string $action;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $property;
/**
* @ORM\Column(type="text", nullable=true, name="dataBefore")
*/
private ?string $dataBefore;
/**
* @ORM\Column(type="text", nullable=true, name="dataAfter")
*/
private ?string $dataAfter;
public function __construct()
{
$this->dateAdd = new \DateTime();
}
public function getId(): int
{
return $this->id;
}
public function getCustomerId(): int
{
return $this->customerId;
}
public function setCustomerId(int $customerId): CustomerInformationUpdate
{
$this->customerId = $customerId;
return $this;
}
public function getDateAdd(): ?\DateTime
{
return $this->dateAdd;
}
public function setDateAdd(?\DateTime $dateAdd): CustomerInformationUpdate
{
$this->dateAdd = $dateAdd;
return $this;
}
public function getEmployee(): Employee
{
return $this->employee;
}
public function setEmployee(Employee $employee): CustomerInformationUpdate
{
$this->employee = $employee;
return $this;
}
public function getAction(): ?string
{
return $this->action;
}
public function setAction(?string $action): CustomerInformationUpdate
{
$this->action = $action;
return $this;
}
public function getDataBefore(): ?string
{
return $this->dataBefore;
}
public function setDataBefore(?string $dataBefore): CustomerInformationUpdate
{
$this->dataBefore = $dataBefore;
return $this;
}
public function getDataAfter(): ?string
{
return $this->dataAfter;
}
public function setDataAfter(?string $dataAfter): CustomerInformationUpdate
{
$this->dataAfter = $dataAfter;
return $this;
}
public function getProperty(): ?string
{
return $this->property;
}
public function setProperty(?string $property): CustomerInformationUpdate
{
$this->property = $property;
return $this;
}
}