src/Application/Internit/PeriodoAgendamentoBundle/Entity/PeriodoAgendamento.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Application\Internit\PeriodoAgendamentoBundle\Entity;
  3. use App\Application\Internit\PeriodoAgendamentoBundle\Repository\PeriodoAgendamentoRepository;
  4. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. use Doctrine\Common\Collections\Collection;
  8. use App\Entity\SonataMediaGallery;
  9. use App\Entity\SonataMediaMedia;
  10. use Doctrine\ORM\Mapping as ORM;
  11. use DateTime;
  12. /** Info:  */
  13. #[ORM\Table(name'periodo_agendamento')]
  14. #[ORM\Entity(repositoryClassPeriodoAgendamentoRepository::class)]
  15. #[UniqueEntity('id')]
  16. class PeriodoAgendamento
  17. {
  18.     #[ORM\Id]
  19.     #[ORM\Column(name'id'type'integer'uniquetruenullablefalse)]
  20.     private ?int $id null;
  21.     #[Assert\NotNull]
  22.     #[Assert\NotBlank]
  23.     #[ORM\Column(name'periodo'type'string'uniquefalsenullablefalse)]
  24.     private string $periodo;
  25.     #[ORM\Column(name'visivel'type'boolean'uniquefalsenullabletrue)]
  26.     private ?bool $visivel null;
  27.     public function __construct()
  28.     {
  29.     }
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function setId(int $id)
  35.     {
  36.         $this->id $id;
  37.     }
  38.     public function getPeriodo(): string
  39.     {
  40.         return $this->periodo;
  41.     }
  42.     public function setPeriodo(string $periodo): void
  43.     {
  44.         $this->periodo $periodo;
  45.     }
  46.     public function getVisivel(): ?bool
  47.     {
  48.         return $this->visivel;
  49.     }
  50.     public function setVisivel(?bool $visivel): void
  51.     {
  52.         $this->visivel $visivel;
  53.     }
  54. }