<?php

namespace Entity\Model;

use Helpers\Outil\Sql;
use Helpers\QueryBuilder\QueryBuilder;

class PrOxaCat extends QueryBuilder
{
    protected string $table = 'PROXACAT with (nolock)';
    protected string $primaryKey = 'TYPEIDX';
    
    // TODO : wincache

    public function isPublicationGeneric() :bool
    {
        return Sql::toBool($this->find('PUBSFAG')['PARAVAL'] ?? false);
    }
}
