Méthode | Description | |
---|---|---|
__construct ( |
UnitSetupService constructor. | |
importUnits ( ) : array | Imports units. |
Méthode | Description | |
---|---|---|
getSiPrefix ( string $name ) : |
Finds an SI Prefix by name. | |
getUnit ( string $name ) : |
Checks if the specified SI Prefix. |
public __construct ( |
||
$entityManager | ||
$kernel | Symfony\Component\HttpKernel\KernelInterface |
protected getSiPrefix ( string $name ) : |
||
$name | string | The SI Prefix name |
Résultat |
public importUnits ( ) : array | ||
Résultat | array | An array with the keys "skipped" and "imported" which contain the number of units skipped and imported |