src/Entity/Veiculo.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VeiculoRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassVeiculoRepository::class)]
  8. class Veiculo
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $administracao null;
  16.     
  17.     #[ORM\Column]
  18.     private ?int $codigo null;
  19.     
  20.     #[ORM\Column(length45nullabletrue)]
  21.     private ?string $numero null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $credor null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $credorDocumento null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $descricao null;
  28.     #[ORM\Column(length10nullabletrue)]
  29.     private ?string $placa null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $departamento null;
  32.     #[ORM\Column(length45nullabletrue)]
  33.     private ?string $combustivel null;
  34.     #[ORM\Column(length1nullabletrue)]
  35.     private ?string $ativo null;
  36.     #[ORM\Column(length255nullabletrue)]
  37.     private ?string $modelo null;
  38.     #[ORM\Column(length1nullabletrue)]
  39.     private ?string $tipo null;
  40.     #[ORM\Column(length1000nullabletrue)]
  41.     private ?string $especie null;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $chassis null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $renavan null;
  46. //    #[ORM\OneToMany(mappedBy: 'veiculo', targetEntity: VeiculoSaida::class)]
  47. //    private Collection $saidas;
  48. //    #[ORM\OneToMany(mappedBy: 'veiculo', targetEntity: VeiculoAbastecimento::class)]
  49. //    private Collection $veiculoAbastecimentos;
  50. //    #[ORM\OneToMany(mappedBy: 'veiculo', targetEntity: VeiculoMulta::class)]
  51. //    private Collection $veiculoMultas;
  52.     public function __construct()
  53.     {
  54.         //$this->saidas = new ArrayCollection();
  55.         //$this->veiculoAbastecimentos = new ArrayCollection();
  56.         //$this->veiculoMultas = new ArrayCollection();
  57.     }
  58.     public function getId(): ?int
  59.     {
  60.         return $this->id;
  61.     }
  62.     public function getAdministracao(): ?string
  63.     {
  64.         return $this->administracao;
  65.     }
  66.     public function setAdministracao(?string $administracao): self
  67.     {
  68.         $this->administracao $administracao;
  69.         return $this;
  70.     }
  71.     public function getNumero(): ?string
  72.     {
  73.         return $this->numero;
  74.     }
  75.     public function setNumero(?string $numero): self
  76.     {
  77.         $this->numero $numero;
  78.         return $this;
  79.     }
  80.     public function getCredor(): ?string
  81.     {
  82.         return $this->credor;
  83.     }
  84.     public function setCredor(?string $credor): self
  85.     {
  86.         $this->credor $credor;
  87.         return $this;
  88.     }
  89.     public function getCredorDocumento(): ?string
  90.     {
  91.         return $this->credorDocumento;
  92.     }
  93.     public function setCredorDocumento(?string $credorDocumento): self
  94.     {
  95.         $this->credorDocumento $credorDocumento;
  96.         return $this;
  97.     }
  98.     public function getDescricao(): ?string
  99.     {
  100.         return $this->descricao;
  101.     }
  102.     public function setDescricao(?string $descricao): self
  103.     {
  104.         $this->descricao $descricao;
  105.         return $this;
  106.     }
  107.     public function getPlaca(): ?string
  108.     {
  109.         return $this->placa;
  110.     }
  111.     public function setPlaca(?string $placa): self
  112.     {
  113.         $this->placa $placa;
  114.         return $this;
  115.     }
  116.     public function getDepartamento(): ?string
  117.     {
  118.         return $this->departamento;
  119.     }
  120.     public function setDepartamento(?string $departamento): self
  121.     {
  122.         $this->departamento $departamento;
  123.         return $this;
  124.     }
  125.     public function getCombustivel(): ?string
  126.     {
  127.         return $this->combustivel;
  128.     }
  129.     public function setCombustivel(?string $combustivel): self
  130.     {
  131.         $this->combustivel $combustivel;
  132.         return $this;
  133.     }
  134.     public function getAtivo(): ?string
  135.     {
  136.         return $this->ativo;
  137.     }
  138.     public function setAtivo(?string $ativo): self
  139.     {
  140.         $this->ativo $ativo;
  141.         return $this;
  142.     }
  143.     public function getModelo(): ?string
  144.     {
  145.         return $this->modelo;
  146.     }
  147.     public function setModelo(?string $modelo): self
  148.     {
  149.         $this->modelo $modelo;
  150.         return $this;
  151.     }
  152.     public function getTipo(): ?string
  153.     {
  154.         return $this->tipo;
  155.     }
  156.     public function setTipo(?string $tipo): self
  157.     {
  158.         $this->tipo $tipo;
  159.         return $this;
  160.     }
  161.     public function getEspecie(): ?string
  162.     {
  163.         return $this->especie;
  164.     }
  165.     public function setEspecie(?string $especie): self
  166.     {
  167.         $this->especie $especie;
  168.         return $this;
  169.     }
  170.     public function getChassis(): ?string
  171.     {
  172.         return $this->chassis;
  173.     }
  174.     public function setChassis(?string $chassis): self
  175.     {
  176.         $this->chassis $chassis;
  177.         return $this;
  178.     }
  179.     public function getRenavan(): ?string
  180.     {
  181.         return $this->renavan;
  182.     }
  183.     public function setRenavan(?string $renavan): self
  184.     {
  185.         $this->renavan $renavan;
  186.         return $this;
  187.     }
  188.     
  189.     public function getCodigo(): ?int {
  190.         return $this->codigo;
  191.     }
  192.     public function setCodigo(?int $codigo): void {
  193.         $this->codigo $codigo;
  194.     }    
  195.     /**
  196.      * @return Collection<int, VeiculoSaida>
  197.      */
  198.     //public function getSaidas(): Collection
  199.    // {
  200.    //     return $this->saidas;
  201.    // }
  202.   //  public function addSaida(VeiculoSaida $saida): self
  203.   //  {
  204.   //      if (!$this->saidas->contains($saida)) {
  205.    //         $this->saidas->add($saida);
  206.     //        $saida->setVeiculo($this);
  207.     //    }
  208.         //return $this;
  209.     //}
  210.     //public function removeSaida(Saida $saida): self
  211.     //{
  212.      //   if ($this->saidas->removeElement($saida)) {
  213.             // set the owning side to null (unless already changed)
  214.      //       if ($saida->getVeiculo() === $this) {
  215.      //           $saida->setVeiculo(null);
  216.      //       }
  217.      //   }
  218.     //    return $this;
  219.    // }
  220.     /**
  221.      * @return Collection<int, VeiculoAbastecimento>
  222.      */
  223.  //   public function getVeiculoAbastecimentos(): Collection
  224.  //   {
  225.  //       return $this->veiculoAbastecimentos;
  226.   //  }
  227.   //  public function addVeiculoAbastecimento(VeiculoAbastecimento $veiculoAbastecimento): self
  228.   ///  {
  229.   //      if (!$this->veiculoAbastecimentos->contains($veiculoAbastecimento)) {
  230.   //          $this->veiculoAbastecimentos->add($veiculoAbastecimento);
  231.   //          $veiculoAbastecimento->setVeiculo($this);
  232. //        }
  233.         //return $this;
  234.    // }
  235. //    public function removeVeiculoAbastecimento(VeiculoAbastecimento $veiculoAbastecimento): self
  236.  //   {
  237.   //      if ($this->veiculoAbastecimentos->removeElement($veiculoAbastecimento)) {
  238.             // set the owning side to null (unless already changed)
  239.     //        if ($veiculoAbastecimento->getVeiculo() === $this) {
  240.     //            $veiculoAbastecimento->setVeiculo(null);
  241.     //        }
  242.      //   }
  243.         //return $this;
  244.    // }
  245.     /**
  246.      * @return Collection<int, VeiculoMulta>
  247.      */
  248.    // public function getVeiculoMultas(): Collection
  249.    // {
  250.    //     return $this->veiculoMultas;
  251.    // }
  252. //    public function addVeiculoMulta(VeiculoMulta $veiculoMulta): self
  253.  //   {
  254.   //      if (!$this->veiculoMultas->contains($veiculoMulta)) {
  255.   //          $this->veiculoMultas->add($veiculoMulta);
  256.   //          $veiculoMulta->setVeiculo($this);
  257.   //      }
  258. //        return $this;
  259. //    }
  260.   //  public function removeVeiculoMulta(VeiculoMulta $veiculoMulta): self
  261.   //  {
  262.   //      if ($this->veiculoMultas->removeElement($veiculoMulta)) {
  263.             // set the owning side to null (unless already changed)
  264.  //           if ($veiculoMulta->getVeiculo() === $this) {
  265.   //              $veiculoMulta->setVeiculo(null);
  266.   //          }
  267.   //      }
  268.         //return $this;
  269.     //}
  270. }