<?php
namespace App\Twig;
use App\Tools\Core\StatusComptaTool;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
use Twig\TwigFilter;
use App\Services\Core\Core;
class AdministratifExtension extends AbstractExtension
{
public function __construct(Core $coreService)
{
$this->core = $coreService;
}
public function getFunctions(): array
{
return [
new TwigFunction('getStatusComptaTool', [$this, 'getStatusComptaTool']),
];
}
public function getStatusComptaTool($status)
{
return StatusComptaTool::getStatus($status);
}
}