add budget to docgen

This commit is contained in:
2022-03-24 18:22:49 +01:00
parent 531f940b65
commit 84f9fdba28
8 changed files with 199 additions and 5 deletions

View File

@@ -29,6 +29,11 @@ class ConfigRepository
$this->charges = $charges;
}
public function getChargesKeys(): array
{
return array_map(static function ($element) { return $element['key']; }, $this->charges);
}
/**
* @return array where keys are the resource'key and label the ressource label
*/
@@ -43,6 +48,11 @@ class ConfigRepository
return $charges;
}
public function getResourcesKeys(): array
{
return array_map(static function ($element) { return $element['key']; }, $this->resources);
}
/**
* @return array where keys are the resource'key and label the ressource label
*/