PHP Class PartKeepr\SiPrefixBundle\Entity\SiPrefix

Inheritance: extends PartKeepr\CoreBundle\Entity\BaseEntity
Afficher le fichier Open project: partkeepr/PartKeepr Class Usage Examples

Méthodes publiques

Méthode Description
calculateProduct ( $value ) : float Calculates the product for a given value.
getBase ( ) : integer Returns the base.
getExponent ( ) : integer Returns the exponent.
getPrefix ( ) : string Returns the prefix name.
getSymbol ( ) : string Returns the symbol for the prefix.
setBase ( integer $base ) Sets the base.
setExponent ( integer $exponent ) Sets the exponent.
setPrefix ( string $prefix ) Sets the prefix name.
setSymbol ( string $symbol ) Sets the symbol for the prefix.

Method Details

calculateProduct() public méthode

Calculates the product for a given value.
public calculateProduct ( $value ) : float
$value float The value to calculate the product
Résultat float The resulting value

getBase() public méthode

Returns the base.
public getBase ( ) : integer
Résultat integer The base

getExponent() public méthode

Returns the exponent.
public getExponent ( ) : integer
Résultat integer The exponent

getPrefix() public méthode

Returns the prefix name.
public getPrefix ( ) : string
Résultat string The prefix name

getSymbol() public méthode

Returns the symbol for the prefix.
public getSymbol ( ) : string
Résultat string The symbol

setBase() public méthode

Sets the base.
public setBase ( integer $base )
$base integer The base

setExponent() public méthode

Sets the exponent.
public setExponent ( integer $exponent )
$exponent integer The exponent

setPrefix() public méthode

Sets the prefix name.
public setPrefix ( string $prefix )
$prefix string

setSymbol() public méthode

Sets the symbol for the prefix.
public setSymbol ( string $symbol )
$symbol string The symbol