PHP Class PartKeepr\SetupBundle\Services\SiPrefixSetupService

Afficher le fichier Open project: partkeepr/PartKeepr

Méthodes publiques

Méthode Description
__construct ( EntityManager $entityManager, Symfony\Component\HttpKernel\KernelInterface $kernel ) SiPrefixSetupService constructor.
importSiPrefixes ( ) : array Imports or updates the existing si prefixes.

Méthodes protégées

Méthode Description
getSiPrefix ( string $name ) : SiPrefix | null Finds an SI Prefix by name.

Method Details

__construct() public méthode

SiPrefixSetupService constructor.
public __construct ( EntityManager $entityManager, Symfony\Component\HttpKernel\KernelInterface $kernel )
$entityManager Doctrine\ORM\EntityManager
$kernel Symfony\Component\HttpKernel\KernelInterface

getSiPrefix() protected méthode

Finds an SI Prefix by name.
protected getSiPrefix ( string $name ) : SiPrefix | null
$name string The SI Prefix name
Résultat PartKeepr\SiPrefixBundle\Entity\SiPrefix | null

importSiPrefixes() public méthode

Imports or updates the existing si prefixes.
public importSiPrefixes ( ) : array
Résultat array An array with the keys "skipped" and "imported" which contain the number of si prefixes skipped and imported