<?php
namespace App\Entity\Messaging;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass="App\Repository\App\Messaging\CenterTeamRepository")
*/
class CenterTeam
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
protected $id;
/**
* @ORM\Column(type="string")
* @Assert\NotBlank
*/
protected $centerCode;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Messaging\Team")
* @ORM\JoinColumn(nullable=false)
*/
protected $team;
public function __construct(string $centerCode)
{
$this->centerCode = $centerCode;
}
public function getId(): ?int
{
return $this->id;
}
public function getCenterCode(): string
{
return $this->centerCode;
}
public function setCenterCode(string $centerCode): self
{
$this->centerCode = $centerCode;
return $this;
}
public function getTeam(): ?Team
{
return $this->team;
}
public function setTeam(?Team $team): self
{
$this->team = $team;
return $this;
}
}