<?php

namespace App\Entity;

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

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

    /**
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity=TypePlanification::class, inversedBy="typePlanificationTypeAppareils")
     * @ORM\JoinColumn(nullable=false, name="idtype_planification")
     */
    private $type_planification;

    /**
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity=TypeAppareil::class, inversedBy="typePlanificationTypeAppareils")
     * @ORM\JoinColumn(nullable=false, name="idtype_appareil")
     */
    private $type_appareil;

    public function getTypePlanification(): ?TypePlanification
    {
        return $this->type_planification;
    }

    public function setTypePlanification(?TypePlanification $type_planification): self
    {
        $this->type_planification = $type_planification;

        return $this;
    }

    public function getTypeAppareil(): ?TypeAppareil
    {
        return $this->type_appareil;
    }

    public function setTypeAppareil(?TypeAppareil $type_appareil): self
    {
        $this->type_appareil = $type_appareil;

        return $this;
    }
}
