<?php

namespace App\Entity;

use App\Repository\InterventionMesureRepository;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass=InterventionMesureRepository::class)
 * @ORM\Table(schema="sav")
 */
class InterventionMesure
{

    /**
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity=Intervention::class, inversedBy="interventionMesures")
     * @ORM\JoinColumn(nullable=false, name="idintervention")
     */
    private $intervention;

    /**
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity=TypeMesure::class, inversedBy="interventionMesures")
     * @ORM\JoinColumn(nullable=false, name="idtype_mesure")
     */
    private $type_mesure;

    /**
     * @ORM\Column(type="float", nullable=true)
     */
    private $valeur;


    public function getIntervention(): ?Intervention
    {
        return $this->intervention;
    }

    public function setIntervention(?Intervention $intervention): self
    {
        $this->intervention = $intervention;

        return $this;
    }

    public function getTypeMesure(): ?TypeMesure
    {
        return $this->type_mesure;
    }

    public function setTypeMesure(?TypeMesure $type_mesure): self
    {
        $this->type_mesure = $type_mesure;

        return $this;
    }

    public function getValeur(): ?float
    {
        return $this->valeur;
    }

    public function setValeur(?float $valeur): self
    {
        $this->valeur = $valeur;

        return $this;
    }
}
