<?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\TeamRepository")
*/
class Team
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
protected $id;
/**
* @ORM\Column(type="string", length=255)
* @Assert\NotBlank
*/
protected $label;
/**
* @ORM\Column(type="text")
* @Assert\NotBlank
*/
protected $recipients;
/**
* @ORM\Column(type="boolean")
* @Assert\Type(type="boolean")
*/
protected $isDefaultTeam = false;
public function getId(): ?int
{
return $this->id;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(string $label): self
{
$this->label = $label;
return $this;
}
public function getRecipients(): ?string
{
return $this->recipients;
}
public function setRecipients(string $recipients): self
{
$this->recipients = $recipients;
return $this;
}
public function getIsDefaultTeam(): bool
{
return $this->isDefaultTeam;
}
public function setIsDefaultTeam(bool $isDefaultTeam): self
{
$this->isDefaultTeam = $isDefaultTeam;
return $this;
}
public function __toString()
{
return $this->label;
}
}