src/Entity/ContactPerson.php line 9
<?php
namespace App\Entity;
use App\Repository\ContactPersonRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ContactPersonRepository::class)]
class ContactPerson
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\OneToOne(cascade: ['persist', 'remove'])]
private ?Image $avatar = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column(length: 255)]
private ?string $function_name = null;
#[ORM\Column(length: 255)]
private ?string $phone = null;
#[ORM\Column(length: 255)]
private ?string $email = null;
public function __toString() {
return $this->name;
}
public function getId(): ?int
{
return $this->id;
}
public function getAvatar(): ?Image
{
return $this->avatar;
}
public function setAvatar(?Image $avatar): self
{
$this->avatar = $avatar;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getFunctionName(): ?string
{
return $this->function_name;
}
public function setFunctionName(string $function_name): self
{
$this->function_name = $function_name;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
}