src/Entity/Messaging/Team.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Messaging;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\App\Messaging\TeamRepository")
  7.  */
  8. class Team
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     protected $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      * @Assert\NotBlank
  19.      */
  20.     protected $label;
  21.     /**
  22.      * @ORM\Column(type="text")
  23.      * @Assert\NotBlank
  24.      */
  25.     protected $recipients;
  26.     /**
  27.      * @ORM\Column(type="boolean")
  28.      * @Assert\Type(type="boolean")
  29.      */
  30.     protected $isDefaultTeam false;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getLabel(): ?string
  36.     {
  37.         return $this->label;
  38.     }
  39.     public function setLabel(string $label): self
  40.     {
  41.         $this->label $label;
  42.         return $this;
  43.     }
  44.     public function getRecipients(): ?string
  45.     {
  46.         return $this->recipients;
  47.     }
  48.     public function setRecipients(string $recipients): self
  49.     {
  50.         $this->recipients $recipients;
  51.         return $this;
  52.     }
  53.     public function getIsDefaultTeam(): bool
  54.     {
  55.         return $this->isDefaultTeam;
  56.     }
  57.     public function setIsDefaultTeam(bool $isDefaultTeam): self
  58.     {
  59.         $this->isDefaultTeam $isDefaultTeam;
  60.         return $this;
  61.     }
  62.     public function __toString()
  63.     {
  64.         return $this->label;
  65.     }
  66. }