ldc-arcadia-genesis-php-client/src/Lib/ApiDto/Dto/IncoCompo/ApportsReference.php
2026-04-16 09:48:49 +02:00

54 lines
2 KiB
PHP

<?php
declare(strict_types=1);
namespace Uwil\ArcadiaGenesisPhpClient\Lib\ApiDto\Dto\IncoCompo;
final readonly class ApportsReference extends AbstractIncoCompoPartDto
{
public function __construct(
public string $pourcentApportRefE14P,
public string $pourcentApportRefKjoP,
public string $pourcentApportRefFatP,
public string $pourcentApportRefFatsatP,
public string $pourcentApportRefChovalP,
public string $pourcentApportRefSugarP,
public string $pourcentApportRefProP,
public string $pourcentApportRefSalteqP,
public string $apportPort,
public string $pSurL,
) {
}
protected static function fieldLabels(): array
{
return [
'pourcentApportRefE14P' => '% AR Énergie E14 / portion',
'pourcentApportRefKjoP' => '% AR Énergie kJ / portion',
'pourcentApportRefFatP' => '% AR Matières grasses / portion',
'pourcentApportRefFatsatP' => '% AR Graisses saturées / portion',
'pourcentApportRefChovalP' => '% AR Glucides / portion',
'pourcentApportRefSugarP' => '% AR Sucres / portion',
'pourcentApportRefProP' => '% AR Protéines / portion',
'pourcentApportRefSalteqP' => '% AR Sel / portion',
'apportPort' => 'Apport par portion',
'pSurL' => 'Ratio P/L',
];
}
protected static function fieldUnits(): array
{
return [
'pourcentApportRefE14P' => '%',
'pourcentApportRefKjoP' => '%',
'pourcentApportRefFatP' => '%',
'pourcentApportRefFatsatP' => '%',
'pourcentApportRefChovalP' => '%',
'pourcentApportRefSugarP' => '%',
'pourcentApportRefProP' => '%',
'pourcentApportRefSalteqP' => '%',
'apportPort' => 'g',
'pSurL' => null,
];
}
}