<?phpnamespace App\Entity\System;use Doctrine\ORM\Mapping as ORM;/** * Order * * @ORM\Table(name="ps_customer_action_log") * * @ORM\Entity(repositoryClass="App\Repository\System\CustomerLogRepository") */class CustomerLog{ /** * @ORM\Id() * * @ORM\GeneratedValue() * * @ORM\Column(type="integer", name="id_log") */ private $id; /** * @var Customer * * @ORM\ManyToOne(targetEntity="App\Entity\System\Customer", inversedBy="customerLog") * * @ORM\JoinColumn(referencedColumnName="id_customer", name="id_customer", nullable=false) */ private $customer; /** * @var \DateTime * * @ORM\Column(type="datetime") */ private $dateAdd; /** * @var string|null * * @ORM\Column(type="string", length=100, nullable=true) */ private $action; /** * @return mixed */ public function getId() { return $this->id; } /** * @param mixed $id * * @return CustomerLog */ public function setId($id): CustomerLog { $this->id = $id; return $this; } /** * @return Customer */ public function getCustomer(): Customer { return $this->customer; } /** * @param Customer $customer * * @return CustomerLog */ public function setCustomer(Customer $customer): CustomerLog { $this->customer = $customer; return $this; } /** * @return \DateTime */ public function getDateAdd(): \DateTime { return $this->dateAdd; } /** * @param \DateTime $dateAdd * * @return CustomerLog */ public function setDateAdd(\DateTime $dateAdd): CustomerLog { $this->dateAdd = $dateAdd; return $this; } /** * @return string|null */ public function getAction(): ?string { return $this->action; } /** * @param string|null $action * * @return CustomerLog */ public function setAction(?string $action): CustomerLog { $this->action = $action; return $this; }}