PHP Class PartKeepr\SiPrefixBundle\Entity\SiPrefix

Inheritance: extends PartKeepr\CoreBundle\Entity\BaseEntity
Mostra file Open project: partkeepr/PartKeepr Class Usage Examples

Public Methods

Method 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 method

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

getBase() public method

Returns the base.
public getBase ( ) : integer
return integer The base

getExponent() public method

Returns the exponent.
public getExponent ( ) : integer
return integer The exponent

getPrefix() public method

Returns the prefix name.
public getPrefix ( ) : string
return string The prefix name

getSymbol() public method

Returns the symbol for the prefix.
public getSymbol ( ) : string
return string The symbol

setBase() public method

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

setExponent() public method

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

setPrefix() public method

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

setSymbol() public method

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