<?php

namespace App\Entity;

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

/**
 * @ORM\Entity(repositoryClass=InterventionDocumentRepository::class)
 * @ORM\Table(schema="sav")
 */
class InterventionDocument
{
    /**
     * @ORM\Id
     * @ORM\GeneratedValue
     * @ORM\Column(type="integer")
     */
    private $id;

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

    /**
     * @ORM\Column(type="string", length=100, nullable=true)
     */
    private $nom;

    /**
     * @ORM\Column(type="boolean", nullable=true, options={"default":0})
     */
    private $exclusif_courrier;

    /**
     * @ORM\Column(type="string", length=150, nullable=true)
     */
    private $chemin;

    public function getId(): ?int
    {
        return $this->id;
    }

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

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

        return $this;
    }

    public function getNom(): ?string
    {
        return $this->nom;
    }

    public function setNom(?string $nom): self
    {
        $this->nom = $nom;

        return $this;
    }

    public function getExclusifCourrier(): ?bool
    {
        return $this->exclusif_courrier;
    }

    public function setExclusifCourrier(?bool $exclusif_courrier): self
    {
        $this->exclusif_courrier = $exclusif_courrier;

        return $this;
    }

    public function getChemin(): ?string
    {
        return $this->chemin;
    }

    public function setChemin(?string $chemin): self
    {
        $this->chemin = $chemin;

        return $this;
    }
}
