<?phpnamespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\ServicoBoletimMedicaoRepository") */class ServicoBoletimMedicao{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Entity\PropostaComercial") * @ORM\JoinColumn(nullable=false) */ private $proposta; /** * @ORM\ManyToOne(targetEntity="App\Entity\BoletimMedicao", inversedBy="servicos") * @ORM\JoinColumn(nullable=false) */ private $boletim; /** * @ORM\ManyToOne(targetEntity="App\Entity\ServicoPropostaComercial") * @ORM\JoinColumn(nullable=false)ServicoPropostaComercial */ private $servico; /** * @ORM\Column(type="float", options={"default" : 0}) */ private $quantidade = 0; public function getId(): ?int { return $this->id; } public function getProposta(): ?PropostaComercial { return $this->proposta; } public function setProposta(?PropostaComercial $proposta): self { $this->proposta = $proposta; return $this; } public function getBoletim(): ?BoletimMedicao { return $this->boletim; } public function setBoletim(?BoletimMedicao $boletim): self { $this->boletim = $boletim; return $this; } public function getServico(): ?ServicoPropostaComercial { return $this->servico; } public function setServico(?ServicoPropostaComercial $servico): self { $this->servico = $servico; return $this; } public function getQuantidade(): ?float { return $this->quantidade; } public function setQuantidade(?float $quantidade): self { if(!$quantidade){ $quantidade = 0; } $this->quantidade = $quantidade; return $this; }}