<?php

namespace Modules\ProjetAchat\Rules;

use Psr\Http\Message\ServerRequestInterface;

class Champs
{
    protected ServerRequestInterface $request;
    protected \PDO $pdo;
    protected Main $main;

    public function __construct(ServerRequestInterface $request, \PDO $pdo)
    {
        $this->request    = $request;
        $this->pdo        = $pdo;
        $this->main       = new Main($this->request, $this->pdo);
    }

    public function createEdit(): bool
    {
        return $this->main->creatEditAccess();
    }

    public function ajaxObjetLie(): bool
    {
        return $this->main->creatEditAccess();
    }

    public function validation(): bool
    {
        return $this->main->creatEditAccess();
    }

    public function delete(): bool
    {
        return $this->main->creatEditAccess();
    }

    public function deleteHeritage(): bool
    {
        return $this->main->creatEditAccess();
    }

    public function updateHeritage(): bool
    {
        return $this->main->creatEditAccess();
    }

    public function briserHeritage(): bool
    {
        return $this->main->creatEditAccess();
    }
}
