<?php

namespace App\Entity;

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

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

    /**
     * @ORM\ManyToOne(targetEntity=Year::class)
     */
    private $year;

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

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

    /**
     * @ORM\Column(type="boolean")
     */
    private $focal=false;

    /**
     * @ORM\Column(type="boolean")
     */
    private $dpp=false;

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

    /**
     * @ORM\Column(type="boolean")
     */
    private $focal2=false;

    /**
     * @ORM\Column(type="boolean")
     */
    private $dpp2=false;

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

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

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

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

    /**
     * @ORM\Column(type="boolean")
     */
    private $pta=false;

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

    public function getYear(): ?Year
    {
        return $this->year;
    }

    public function setYear(?Year $year): self
    {
        $this->year = $year;

        return $this;
    }

    public function getMinistry(): ?Ministry
    {
        return $this->ministry;
    }

    public function setMinistry(?Ministry $ministry): self
    {
        $this->ministry = $ministry;

        return $this;
    }

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

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

        return $this;
    }

    public function getFocal(): ?bool
    {
        return $this->focal;
    }

    public function setFocal(bool $focal): self
    {
        $this->focal = $focal;

        return $this;
    }

    public function getDpp(): ?bool
    {
        return $this->dpp;
    }

    public function setDpp(bool $dpp): self
    {
        $this->dpp = $dpp;

        return $this;
    }

    public function getFile(): ?string
    {
        return $this->file;
    }

    public function setFile(?string $file): self
    {
        $this->file = $file;

        return $this;
    }

    public function getFocal2(): ?bool
    {
        return $this->focal2;
    }

    public function setFocal2(bool $focal2): self
    {
        $this->focal2 = $focal2;

        return $this;
    }

    public function getDpp2(): ?bool
    {
        return $this->dpp2;
    }

    public function setDpp2(bool $dpp2): self
    {
        $this->dpp2 = $dpp2;

        return $this;
    }

    public function getAvis(): ?string
    {
        return $this->avis;
    }

    public function setAvis(?string $avis): self
    {
        $this->avis = $avis;

        return $this;
    }

    public function getObservation(): ?string
    {
        return $this->observation;
    }

    public function setObservation(?string $observation): self
    {
        $this->observation = $observation;

        return $this;
    }

    public function getDpppta(): ?bool
    {
        return $this->dpppta;
    }

    public function setDpppta(?bool $dpppta): self
    {
        $this->dpppta = $dpppta;

        return $this;
    }

    public function getFocalpta(): ?bool
    {
        return $this->focalpta;
    }

    public function setFocalpta(?bool $focalpta): self
    {
        $this->focalpta = $focalpta;

        return $this;
    }

    public function getPta(): ?bool
    {
        return $this->pta;
    }

    public function setPta(?bool $pta): self
    {
        $this->pta = $pta;

        return $this;
    }
}
