99 lines
1.9 KiB
PHP
99 lines
1.9 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace App\Entity;
|
||
|
|
||
|
use App\Repository\ReferralSourceRepository;
|
||
|
use Doctrine\ORM\Mapping as ORM;
|
||
|
use Symfony\Bridge\Doctrine\Types\UuidType;
|
||
|
use Symfony\Component\Uid\Uuid;
|
||
|
|
||
|
#[ORM\Entity(repositoryClass: ReferralSourceRepository::class)]
|
||
|
class ReferralSource
|
||
|
{
|
||
|
#[ORM\Id]
|
||
|
#[ORM\Column(type: UuidType::NAME, unique: true)]
|
||
|
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
|
||
|
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
|
||
|
private ?Uuid $id = null;
|
||
|
|
||
|
#[ORM\Column(length: 10)]
|
||
|
private ?string $agency = null;
|
||
|
|
||
|
#[ORM\Column(length: 255)]
|
||
|
private ?string $name = null;
|
||
|
|
||
|
#[ORM\Column(length: 255)]
|
||
|
private ?string $email = null;
|
||
|
|
||
|
#[ORM\Column(length: 15, nullable: true)]
|
||
|
private ?string $phone = null;
|
||
|
|
||
|
#[ORM\Column(length: 100, nullable: true)]
|
||
|
private ?string $county = null;
|
||
|
|
||
|
public function getId(): ?Uuid
|
||
|
{
|
||
|
return $this->id;
|
||
|
}
|
||
|
|
||
|
public function getAgency(): ?string
|
||
|
{
|
||
|
return $this->agency;
|
||
|
}
|
||
|
|
||
|
public function setAgency(string $agency): static
|
||
|
{
|
||
|
$this->agency = $agency;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getName(): ?string
|
||
|
{
|
||
|
return $this->name;
|
||
|
}
|
||
|
|
||
|
public function setName(string $name): static
|
||
|
{
|
||
|
$this->name = $name;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getEmail(): ?string
|
||
|
{
|
||
|
return $this->email;
|
||
|
}
|
||
|
|
||
|
public function setEmail(string $email): static
|
||
|
{
|
||
|
$this->email = $email;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getPhone(): ?string
|
||
|
{
|
||
|
return $this->phone;
|
||
|
}
|
||
|
|
||
|
public function setPhone(?string $phone): static
|
||
|
{
|
||
|
$this->phone = $phone;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getCounty(): ?string
|
||
|
{
|
||
|
return $this->county;
|
||
|
}
|
||
|
|
||
|
public function setCounty(?string $county): static
|
||
|
{
|
||
|
$this->county = $county;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
}
|