<?php
namespace App\Entity;
use App\Repository\CustomerInfoTypeRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CustomerInfoTypeRepository::class)]
class CustomerInfoType
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'customerInfoTypes')]
#[ORM\JoinColumn(nullable: false)]
private ?Customer $customer = null;
#[ORM\ManyToOne(inversedBy: 'customerInfoTypes')]
private ?InfoType $info_type = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $info_value = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $info_desc = null;
public function getId(): ?int
{
return $this->id;
}
public function getCustomer(): ?Customer
{
return $this->customer;
}
public function setCustomer(?Customer $customer): self
{
$this->customer = $customer;
return $this;
}
public function getInfoType(): ?InfoType
{
return $this->info_type;
}
public function setInfoType(?InfoType $info_type): self
{
$this->info_type = $info_type;
return $this;
}
public function getInfoValue(): ?string
{
return $this->info_value;
}
public function setInfoValue(string $info_value): self
{
$this->info_value = $info_value;
return $this;
}
public function getInfoDesc(): ?string
{
return $this->info_desc;
}
public function setInfoDesc(?string $info_desc): self
{
$this->info_desc = $info_desc;
return $this;
}
}