<?php declare(strict_types=1);

namespace App\Engine\Settings;

use Doctrine\ORM\Mapping as ORM;

#[ORM\Entity]
class Settings
{

    #[ORM\Id]
    #[ORM\Column(type: 'string', unique: true)]
    private string $id = "";
    #[ORM\Column(type: 'text')]
    private string $text = "";
    #[ORM\Column(type: 'datetime')]
    private \DateTime $lastChanged;

    public function __construct()
    {
        $this->lastChanged = new \DateTime();
    }

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

    public function setId(string $id): Settings
    {
        $this->id = $id;
        return $this;
    }

    public function getText(): string
    {
        return $this->text;
    }

    public function setText(string $text): Settings
    {
        $this->text = $text;
        return $this;
    }

    public function getLastChanged(): \DateTime
    {
        return $this->lastChanged;
    }

    public function setLastChanged(\DateTime $lastChanged): Settings
    {
        $this->lastChanged = $lastChanged;
        return $this;
    }

}