src/Entity/Veiculo.php line 11
<?php
namespace App\Entity;
use App\Repository\VeiculoRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: VeiculoRepository::class)]
class Veiculo
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $administracao = null;
#[ORM\Column]
private ?int $codigo = null;
#[ORM\Column(length: 45, nullable: true)]
private ?string $numero = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $credor = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $credorDocumento = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $descricao = null;
#[ORM\Column(length: 10, nullable: true)]
private ?string $placa = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $departamento = null;
#[ORM\Column(length: 45, nullable: true)]
private ?string $combustivel = null;
#[ORM\Column(length: 1, nullable: true)]
private ?string $ativo = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $modelo = null;
#[ORM\Column(length: 1, nullable: true)]
private ?string $tipo = null;
#[ORM\Column(length: 1000, nullable: true)]
private ?string $especie = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $chassis = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $renavan = null;
// #[ORM\OneToMany(mappedBy: 'veiculo', targetEntity: VeiculoSaida::class)]
// private Collection $saidas;
// #[ORM\OneToMany(mappedBy: 'veiculo', targetEntity: VeiculoAbastecimento::class)]
// private Collection $veiculoAbastecimentos;
// #[ORM\OneToMany(mappedBy: 'veiculo', targetEntity: VeiculoMulta::class)]
// private Collection $veiculoMultas;
public function __construct()
{
//$this->saidas = new ArrayCollection();
//$this->veiculoAbastecimentos = new ArrayCollection();
//$this->veiculoMultas = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getAdministracao(): ?string
{
return $this->administracao;
}
public function setAdministracao(?string $administracao): self
{
$this->administracao = $administracao;
return $this;
}
public function getNumero(): ?string
{
return $this->numero;
}
public function setNumero(?string $numero): self
{
$this->numero = $numero;
return $this;
}
public function getCredor(): ?string
{
return $this->credor;
}
public function setCredor(?string $credor): self
{
$this->credor = $credor;
return $this;
}
public function getCredorDocumento(): ?string
{
return $this->credorDocumento;
}
public function setCredorDocumento(?string $credorDocumento): self
{
$this->credorDocumento = $credorDocumento;
return $this;
}
public function getDescricao(): ?string
{
return $this->descricao;
}
public function setDescricao(?string $descricao): self
{
$this->descricao = $descricao;
return $this;
}
public function getPlaca(): ?string
{
return $this->placa;
}
public function setPlaca(?string $placa): self
{
$this->placa = $placa;
return $this;
}
public function getDepartamento(): ?string
{
return $this->departamento;
}
public function setDepartamento(?string $departamento): self
{
$this->departamento = $departamento;
return $this;
}
public function getCombustivel(): ?string
{
return $this->combustivel;
}
public function setCombustivel(?string $combustivel): self
{
$this->combustivel = $combustivel;
return $this;
}
public function getAtivo(): ?string
{
return $this->ativo;
}
public function setAtivo(?string $ativo): self
{
$this->ativo = $ativo;
return $this;
}
public function getModelo(): ?string
{
return $this->modelo;
}
public function setModelo(?string $modelo): self
{
$this->modelo = $modelo;
return $this;
}
public function getTipo(): ?string
{
return $this->tipo;
}
public function setTipo(?string $tipo): self
{
$this->tipo = $tipo;
return $this;
}
public function getEspecie(): ?string
{
return $this->especie;
}
public function setEspecie(?string $especie): self
{
$this->especie = $especie;
return $this;
}
public function getChassis(): ?string
{
return $this->chassis;
}
public function setChassis(?string $chassis): self
{
$this->chassis = $chassis;
return $this;
}
public function getRenavan(): ?string
{
return $this->renavan;
}
public function setRenavan(?string $renavan): self
{
$this->renavan = $renavan;
return $this;
}
public function getCodigo(): ?int {
return $this->codigo;
}
public function setCodigo(?int $codigo): void {
$this->codigo = $codigo;
}
/**
* @return Collection<int, VeiculoSaida>
*/
//public function getSaidas(): Collection
// {
// return $this->saidas;
// }
// public function addSaida(VeiculoSaida $saida): self
// {
// if (!$this->saidas->contains($saida)) {
// $this->saidas->add($saida);
// $saida->setVeiculo($this);
// }
//return $this;
//}
//public function removeSaida(Saida $saida): self
//{
// if ($this->saidas->removeElement($saida)) {
// set the owning side to null (unless already changed)
// if ($saida->getVeiculo() === $this) {
// $saida->setVeiculo(null);
// }
// }
// return $this;
// }
/**
* @return Collection<int, VeiculoAbastecimento>
*/
// public function getVeiculoAbastecimentos(): Collection
// {
// return $this->veiculoAbastecimentos;
// }
// public function addVeiculoAbastecimento(VeiculoAbastecimento $veiculoAbastecimento): self
/// {
// if (!$this->veiculoAbastecimentos->contains($veiculoAbastecimento)) {
// $this->veiculoAbastecimentos->add($veiculoAbastecimento);
// $veiculoAbastecimento->setVeiculo($this);
// }
//return $this;
// }
// public function removeVeiculoAbastecimento(VeiculoAbastecimento $veiculoAbastecimento): self
// {
// if ($this->veiculoAbastecimentos->removeElement($veiculoAbastecimento)) {
// set the owning side to null (unless already changed)
// if ($veiculoAbastecimento->getVeiculo() === $this) {
// $veiculoAbastecimento->setVeiculo(null);
// }
// }
//return $this;
// }
/**
* @return Collection<int, VeiculoMulta>
*/
// public function getVeiculoMultas(): Collection
// {
// return $this->veiculoMultas;
// }
// public function addVeiculoMulta(VeiculoMulta $veiculoMulta): self
// {
// if (!$this->veiculoMultas->contains($veiculoMulta)) {
// $this->veiculoMultas->add($veiculoMulta);
// $veiculoMulta->setVeiculo($this);
// }
// return $this;
// }
// public function removeVeiculoMulta(VeiculoMulta $veiculoMulta): self
// {
// if ($this->veiculoMultas->removeElement($veiculoMulta)) {
// set the owning side to null (unless already changed)
// if ($veiculoMulta->getVeiculo() === $this) {
// $veiculoMulta->setVeiculo(null);
// }
// }
//return $this;
//}
}