<?php

namespace App\Entity;

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

/**
 * @ORM\Entity(repositoryClass=PhotoInstitutionRepository::class)
 */
class PhotoInstitution
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;
    /**
     * @ORM\ManyToOne(targetEntity="App\Entity\Institution", inversedBy="photoInstitution"))
     * @ORM\JoinColumn(nullable=true)
     */
    private $institution;

    /**
     * @ORM\Column(type="string", length=255)
     */
    private $Path = "/uploads/files/image2-2.png";

    /**
     * @ORM\Column(type="string", length=255)
     */
    private $Type;
    /**
     * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="photoInstitution"))
     * @ORM\JoinColumn(nullable=true)
     */
    private $user;

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

    public function getInstitution()
    {
        return $this->institution;
    }

    public function setInstitution($institution): void
    {
        $this->institution = $institution;

    }



    public function getPath(): ?string
    {
        return $this->Path;
    }

    public function setPath(string $Path): self
    {
        $this->Path = $Path;

        return $this;
    }

    public function getType(): ?string
    {
        return $this->Type;
    }

    public function setType(string $Type): self
    {
        $this->Type = $Type;

        return $this;
    }
     /**
     * @return mixed
     */
    public function getUser()
    {
        return $this->user;
    }

    /**
     * @param mixed $user
     */
    public function setUser($user): void
    {
        $this->user = $user;
    }
}
