<?php
// ApiLicense.php
// Copyright P.Kassel, M.Seliger, G.Trietsch, all Rights Reserved
namespace Docuform\Api;use Docuform\Database\DbSQL;use Exception;class ApiLicense extends TableMapper{public const API_RESTLIC_ACTIVE=0x00000001;public?int $restLicense=0;public?int $licenseState=0;public function getColumnMappings():array{return[['name'=>'restLicense','type'=>DbSQL::cst_intornull,'alias'=>'restLicense','visible'=>false],];}public function getParameterConstraints(string $method):array{return[];}public function isActive():bool{return($this->restLicense & self::API_RESTLIC_ACTIVE);}public function hasEShop():bool{return (bool)($this->licenseState & 0x100);}public function hasAccounting():bool{return (bool)($this->licenseState & 0x008);}public function isCiMode():bool{return (bool)($this->licenseState & 0x200);}}