aide-travaux / cee-categorie
Aide travaux - 节能证书 - 类别
v1.3.0
2020-02-07 13:24 UTC
Requires
- php: >=5.3.0
- aide-travaux/core: *
Requires (Dev)
- phpunit/phpunit: ^8.5
README
介绍
CeeCategorie 类返回获取 CEE 资源类别信息的有用方法
方法
CeeCategorie::get(int $ressources, int $compositionFoyer, string $codeRegion): ?string
根据节能证书制度返回资源类别
CeeCategorie::getPlafondPrecarite(int $compositionFoyer, string $codeRegion): int
返回“贫困”类别的资源限额
CeeCategorie::getPlafondGrandePrecarite(int $compositionFoyer, string $codeRegion): int
返回“高能源贫困”类别的资源限额
CeeCategorie::getFractionCeeClassique(int $compositionFoyer, string $codeDepartement): float
返回经典证书体积的比例
CeeCategorie::getFractionCeePrecarite(int $compositionFoyer, string $codeDepartement): float
返回贫困证书体积的比例
CeeCategorie::getFractionCeeGrandePrecarite(int $compositionFoyer, string $codeDepartement): float
返回高能源贫困证书体积的比例
示例
<?php>
use AideTravaux\Cee\Categorie\CeeCategorie;
CeeCategorie::get( 20000, 2, "11" );
CeeCategorie::getPlafondPrecarite( 2, "11" );
CeeCategorie::getPlafondGrandePrecarite( 2, "11" );
CeeCategorie::getFractionCeeClassique( "Grande précarité énergétique", "75" );
CeeCategorie::getFractionCeePrecarite( "Grande précarité énergétique", "75" );
CeeCategorie::getFractionCeeGrandePrecarite( "Grande précarité énergétique", "75" );