<?php

namespace App\Entity;

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

/**
 * @ORM\Entity(repositoryClass=ActiviteNormeRepository::class)
 */
class ActiviteNorme
{
    /**
     * @ORM\Id
     * @ORM\GeneratedValue
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="string", length=255)
     */
    private $code;

    /**
     * @ORM\Column(type="string", length=255)
     */
    private $libelle;

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

    /**
     * @ORM\ManyToOne(targetEntity=Commune::class)
     */
    private $commune;

    /**
     * @ORM\ManyToOne(targetEntity=Ministry::class)
     */
    private $ministere;

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

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

    public function getCode(): ?string
    {
        return $this->code;
    }

    public function setCode(string $code): self
    {
        $this->code = $code;

        return $this;
    }

    public function getLibelle(): ?string
    {
        return $this->libelle;
    }

    public function setLibelle(string $libelle): self
    {
        $this->libelle = $libelle;

        return $this;
    }

    public function getCout(): ?int
    {
        return $this->cout;
    }

    public function setCout(?int $cout): self
    {
        $this->cout = $cout;

        return $this;
    }

    public function getCommune(): ?Commune
    {
        return $this->commune;
    }

    public function setCommune(?Commune $commune): self
    {
        $this->commune = $commune;

        return $this;
    }

    public function getMinistere(): ?Ministry
    {
        return $this->ministere;
    }

    public function setMinistere(?Ministry $ministere): self
    {
        $this->ministere = $ministere;

        return $this;
    }

    public function getNiveau(): ?float
    {
        return $this->niveau;
    }

    public function setNiveau(?float $niveau): self
    {
        $this->niveau = $niveau;

        return $this;
    }
}
