src/Application/Internit/EmpresaBundle/Entity/Empresa.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Application\Internit\EmpresaBundle\Entity;
  3. use App\Application\Internit\EmpresaBundle\Repository\EmpresaRepository;
  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'empresa')]
  14. #[ORM\Entity(repositoryClassEmpresaRepository::class)]
  15. #[UniqueEntity('id')]
  16. class Empresa
  17. {
  18.     #[ORM\Id]
  19.     #[ORM\GeneratedValue]
  20.     #[ORM\Column(name'id'type'integer'uniquetruenullablefalse)]
  21.     private ?int $id null;
  22.     #[Assert\NotNull]
  23.     #[Assert\NotBlank]
  24.     #[ORM\Column(name'nome'type'string'uniquefalsenullabletrue)]
  25.     private ?string $nome null;
  26.     #[Assert\NotNull]
  27.     #[Assert\NotBlank]
  28.     #[ORM\Column(name'email'type'string'uniquefalsenullabletrue)]
  29.     private ?string $email null;
  30.     #[ORM\Column(name'telefone'type'string'uniquefalsenullabletrue)]
  31.     private ?string $telefone null;
  32.     #[ORM\Column(name'urlAdmin'type'string'uniquefalsenullabletrue)]
  33.     private ?string $urlAdmin null;
  34.     #[ORM\Column(name'urlCliente'type'string'uniquefalsenullabletrue)]
  35.     private ?string $urlCliente null;
  36.     #[ORM\Column(name'cep'type'string'uniquefalsenullabletrue)]
  37.     private ?string $cep null;
  38.     #[ORM\Column(name'estado'type'string'uniquefalsenullabletrue)]
  39.     private ?string $estado null;
  40.     #[ORM\Column(name'cidade'type'string'uniquefalsenullabletrue)]
  41.     private ?string $cidade null;
  42.     #[ORM\Column(name'bairro'type'string'uniquefalsenullabletrue)]
  43.     private ?string $bairro null;
  44.     #[ORM\Column(name'rua'type'string'uniquefalsenullabletrue)]
  45.     private ?string $rua null;
  46.     #[ORM\Column(name'numero'type'string'uniquefalsenullabletrue)]
  47.     private ?string $numero null;
  48.     #[ORM\Column(name'complemento'type'string'uniquefalsenullabletrue)]
  49.     private ?string $complemento null;
  50.     #[ORM\ManyToOne(targetEntitySonataMediaMedia::class, cascade: ['persist'])]
  51.     private mixed $logo;
  52.     #[ORM\Column(name'corEmail'type'string'uniquefalsenullabletrue)]
  53.     private ?string $corEmail '';
  54.     #[ORM\Column(name'emailsSolicitacao'type'text'uniquefalsenullabletrue)]
  55.     private ?string $emailsSolicitacao null;
  56.     #[ORM\Column(name'emailsUsuario'type'text'uniquefalsenullabletrue)]
  57.     private ?string $emailsUsuario null;
  58.     #[ORM\Column(name'comteleToken'type'string'uniquefalsenullabletrue)]
  59.     private ?string $comteleToken null;
  60.     #[ORM\Column(name'comteleEnvios'type'integer'uniquefalsenullabletrue)]
  61.     private ?int $comteleEnvios 0;
  62.     public function __construct()
  63.     {
  64.     }
  65.     public function getId(): ?int
  66.     {
  67.         return $this->id;
  68.     }
  69.     /**
  70.      * @return string|null
  71.      */
  72.     public function getNome(): ?string
  73.     {
  74.         return $this->nome;
  75.     }
  76.     /**
  77.      * @param string|null $nome
  78.      */
  79.     public function setNome(?string $nome): void
  80.     {
  81.         $this->nome $nome;
  82.     }
  83.     public function getEmail(): ?string
  84.     {
  85.         return $this->email;
  86.     }
  87.     public function setEmail(?string $email): void
  88.     {
  89.         $this->email $email;
  90.     }
  91.     public function getTelefone(): ?string
  92.     {
  93.         return $this->telefone;
  94.     }
  95.     public function setTelefone(?string $telefone): void
  96.     {
  97.         $this->telefone $telefone;
  98.     }
  99.     public function getCep(): ?string
  100.     {
  101.         return $this->cep;
  102.     }
  103.     public function setCep(?string $cep): void
  104.     {
  105.         $this->cep $cep;
  106.     }
  107.     public function getEstado(): ?string
  108.     {
  109.         return $this->estado;
  110.     }
  111.     public function setEstado(?string $estado): void
  112.     {
  113.         $this->estado $estado;
  114.     }
  115.     public function getCidade(): ?string
  116.     {
  117.         return $this->cidade;
  118.     }
  119.     public function getCorEmail(): ?string
  120.     {
  121.         return $this->corEmail;
  122.     }
  123.     public function setCorEmail(?string $corEmail): void
  124.     {
  125.         $this->corEmail $corEmail;
  126.     }
  127.     public function setCidade(?string $cidade): void
  128.     {
  129.         $this->cidade $cidade;
  130.     }
  131.     public function getBairro(): ?string
  132.     {
  133.         return $this->bairro;
  134.     }
  135.     public function setBairro(?string $bairro): void
  136.     {
  137.         $this->bairro $bairro;
  138.     }
  139.     public function getRua(): ?string
  140.     {
  141.         return $this->rua;
  142.     }
  143.     public function setRua(?string $rua): void
  144.     {
  145.         $this->rua $rua;
  146.     }
  147.     public function getNumero(): ?string
  148.     {
  149.         return $this->numero;
  150.     }
  151.     public function setNumero(?string $numero): void
  152.     {
  153.         $this->numero $numero;
  154.     }
  155.     public function getComplemento(): ?string
  156.     {
  157.         return $this->complemento;
  158.     }
  159.     public function setComplemento(?string $complemento): void
  160.     {
  161.         $this->complemento $complemento;
  162.     }
  163.     public function getLogo(): mixed
  164.     {
  165.         return $this->logo;
  166.     }
  167.     public function setLogo(mixed $logo): void
  168.     {
  169.         $this->logo $logo;
  170.     }
  171.     /**
  172.      * @return string|null
  173.      */
  174.     public function getUrlAdmin(): ?string
  175.     {
  176.         return $this->urlAdmin;
  177.     }
  178.     /**
  179.      * @param string|null $urlAdmin
  180.      */
  181.     public function setUrlAdmin(?string $urlAdmin): void
  182.     {
  183.         $this->urlAdmin $urlAdmin;
  184.     }
  185.     public function getUrlCliente(): ?string
  186.     {
  187.         return $this->urlCliente;
  188.     }
  189.     public function setUrlCliente(?string $urlCliente): void
  190.     {
  191.         $this->urlCliente $urlCliente;
  192.     }
  193.     /**
  194.      * @return string|null
  195.      */
  196.     public function getEmailsSolicitacao(): ?string
  197.     {
  198.         return $this->emailsSolicitacao;
  199.     }
  200.     /**
  201.      * @param string|null $emailsSolicitacao
  202.      */
  203.     public function setEmailsSolicitacao(?string $emailsSolicitacao): void
  204.     {
  205.         $this->emailsSolicitacao $emailsSolicitacao;
  206.     }
  207.     /**
  208.      * @return string|null
  209.      */
  210.     public function getEmailsUsuario(): ?string
  211.     {
  212.         return $this->emailsUsuario;
  213.     }
  214.     /**
  215.      * @param string|null $emailsUsuario
  216.      */
  217.     public function setEmailsUsuario(?string $emailsUsuario): void
  218.     {
  219.         $this->emailsUsuario $emailsUsuario;
  220.     }
  221.     public function getComteleToken(): ?string
  222.     {
  223.         return $this->comteleToken;
  224.     }
  225.     public function setComteleToken(?string $comteleToken): void
  226.     {
  227.         $this->comteleToken $comteleToken;
  228.     }
  229.     public function getComteleEnvios(): ?int
  230.     {
  231.         return $this->comteleEnvios;
  232.     }
  233.     public function setComteleEnvios(?int $comteleEnvios): void
  234.     {
  235.         $this->comteleEnvios $comteleEnvios;
  236.     }
  237. }