suivi/src/Entity/TeamContact.php

67 lines
1.2 KiB
PHP
Raw Normal View History

2022-06-26 19:08:40 +02:00
<?php
namespace App\Entity;
use App\Repository\TeamContactRepository;
use Doctrine\ORM\Mapping as ORM;
use App\Core\Entity\EntityInterface;
2022-12-19 18:35:10 +01:00
#[ORM\Entity(repositoryClass: TeamContactRepository::class)]
2022-06-26 19:08:40 +02:00
class TeamContact implements EntityInterface
{
2022-12-19 18:35:10 +01:00
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
2022-06-26 19:08:40 +02:00
protected $id;
2022-12-19 18:35:10 +01:00
#[ORM\Column(type: 'string', length: 255)]
2022-06-26 19:08:40 +02:00
protected $name;
2022-12-19 18:35:10 +01:00
#[ORM\Column(type: 'array')]
2022-06-26 19:08:40 +02:00
protected $phones = [];
2022-12-19 18:35:10 +01:00
#[ORM\Column(type: 'array')]
2022-06-26 19:08:40 +02:00
protected $emails = [];
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getPhones(): ?array
{
return $this->phones;
}
public function setPhones(array $phones): self
{
$this->phones = $phones;
return $this;
}
public function getEmails(): ?array
{
return $this->emails;
}
public function setEmails(array $emails): self
{
$this->emails = $emails;
return $this;
}
}