메소드 | 설명 | |
---|---|---|
__construct ( |
UnitSetupService constructor. | |
importUnits ( ) : array | Imports units. |
메소드 | 설명 | |
---|---|---|
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 |
리턴 |
public importUnits ( ) : array | ||
리턴 | array | An array with the keys "skipped" and "imported" which contain the number of units skipped and imported |