67 lines
1.2 KiB
PHP
67 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\TeamContactRepository;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use App\Core\Entity\EntityInterface;
|
|
|
|
#[ORM\Entity(repositoryClass: TeamContactRepository::class)]
|
|
class TeamContact implements EntityInterface
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column(type: 'integer')]
|
|
protected $id;
|
|
|
|
#[ORM\Column(type: 'string', length: 255)]
|
|
protected $name;
|
|
|
|
#[ORM\Column(type: 'array')]
|
|
protected $phones = [];
|
|
|
|
#[ORM\Column(type: 'array')]
|
|
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;
|
|
}
|
|
}
|