<?php

namespace App\Entity;

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

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

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

    /**
     * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="interventionStacks")
     * @ORM\JoinColumn(name="idagent")
     */
    private $agent;

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

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

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

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

    public function getChecksum(): ?string
    {
        return $this->checksum;
    }

    public function setChecksum(?string $checksum): self
    {
        $this->checksum = $checksum;

        return $this;
    }

    public function getAgent(): ?Utilisateur
    {
        return $this->agent;
    }

    public function setAgent(?Utilisateur $agent): self
    {
        $this->agent = $agent;

        return $this;
    }

    public function getDateHeure(): ?\DateTimeInterface
    {
        return $this->date_heure;
    }

    public function setDateHeure(?\DateTimeInterface $date_heure): self
    {
        $this->date_heure = $date_heure;

        return $this;
    }

    public function getRoute(): ?string
    {
        return $this->route;
    }

    public function setRoute(?string $route): self
    {
        $this->route = $route;

        return $this;
    }

    public function getContent()
    {
        return $this->content;
    }

    public function setContent($content): self
    {
        $this->content = $content;

        return $this;
    }
}
