<?php

namespace App\Entity;

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

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

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

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

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

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

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

    /**
     * @ORM\ManyToOne(targetEntity=UtilisateurProfil::class, inversedBy="attachementProfils")
     * @ORM\JoinColumn(nullable=false, name="idutilisateur_profil")
     */
    private $utilisateur_profil;

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

    public function getPlafondPoint(): ?int
    {
        return $this->plafond_point;
    }

    public function setPlafondPoint(?int $plafond_point): self
    {
        $this->plafond_point = $plafond_point;

        return $this;
    }

    public function getCoefficient(): ?int
    {
        return $this->coefficient;
    }

    public function setCoefficient(?int $coefficient): self
    {
        $this->coefficient = $coefficient;

        return $this;
    }

    public function getValeurPoint(): ?int
    {
        return $this->valeur_point;
    }

    public function setValeurPoint(?int $valeur_point): self
    {
        $this->valeur_point = $valeur_point;

        return $this;
    }

    public function getAnnee(): ?int
    {
        return $this->annee;
    }

    public function setAnnee(?int $annee): self
    {
        $this->annee = $annee;

        return $this;
    }

    public function getSemestre(): ?int
    {
        return $this->semestre;
    }

    public function setSemestre(?int $semestre): self
    {
        $this->semestre = $semestre;

        return $this;
    }

    public function getUtilisateurProfil(): ?UtilisateurProfil
    {
        return $this->utilisateur_profil;
    }

    public function setUtilisateurProfil(?UtilisateurProfil $utilisateur_profil): self
    {
        $this->utilisateur_profil = $utilisateur_profil;

        return $this;
    }
}
