<?php

declare(strict_types=1);

namespace KupShop\ContentBundle\Entity;

use KupShop\KupShopBundle\Template\ArrayAccess;

class Template extends ArrayAccess
{
    public ?int $id = null;
    public ?int $id_category = null;
    public ?string $name = null;
    public ?int $position = null;
    public ?bool $visible = true;
    public ?int $id_block = null;
    public ?array $data = [];

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

    public function setId(int $id): void
    {
        $this->id = $id;
    }

    public function getCategoryId(): ?int
    {
        return $this->id_category;
    }

    public function setIdCategory(?int $id_category): void
    {
        $this->id_category = $id_category;
    }

    public function getName(): ?string
    {
        return $this->name;
    }

    public function setName(?string $name): void
    {
        $this->name = $name;
    }

    public function getPosition(): ?int
    {
        return $this->position;
    }

    public function setPosition(?int $position): void
    {
        $this->position = $position;
    }

    public function isVisible(): bool
    {
        return $this->visible;
    }

    public function setVisible(bool $visible): void
    {
        $this->visible = $visible;
    }

    public function getBlockId(): ?int
    {
        return $this->id_block;
    }

    public function setBlockId(?int $id_block): void
    {
        $this->id_block = $id_block;
    }

    public function getData(): ?array
    {
        return $this->data;
    }

    public function setData(?array $data): void
    {
        $this->data = $data;
    }
}
