PHP Class PartKeepr\PartBundle\Entity\PartParameter

Show file Open project: partkeepr/PartKeepr

Public Methods

Method Description
getDescription ( ) : string Returns the description.
getId ( ) : integer Returns the ID for this object.
getName ( ) : string Returns the name for this parameter.
getPart ( ) : Part Returns the part.
getSiPrefix ( ) : SiPrefix Returns the si prefix for this parameter.
getUnit ( ) : Unit Returns the unit.
getValue ( ) : float Returns the value.
setDescription ( string $description ) Sets the description for this parameter.
setName ( string $name ) Sets the name for this parameter.
setPart ( Part $part ) Sets the part.
setSiPrefix ( SiPrefix $prefix = null ) Sets the si prefix for this parameter.
setUnit ( Unit $unit = null ) Sets the unit.
setValue ( float $value ) Sets the value.

Private Methods

Method Description
recalculateRawValue ( )

Method Details

getDescription() public method

Returns the description.
public getDescription ( ) : string
return string The description

getId() public method

Returns the ID for this object.
public getId ( ) : integer
return integer The ID for this object

getName() public method

Returns the name for this parameter.
public getName ( ) : string
return string The name for this parameter

getPart() public method

Returns the part.
public getPart ( ) : Part
return Part the part

getSiPrefix() public method

Returns the si prefix for this parameter.
public getSiPrefix ( ) : SiPrefix
return PartKeepr\SiPrefixBundle\Entity\SiPrefix the si prefix or null

getUnit() public method

Returns the unit.
public getUnit ( ) : Unit
return PartKeepr\UnitBundle\Entity\Unit the unit

getValue() public method

Returns the value.
public getValue ( ) : float
return float The value

setDescription() public method

Sets the description for this parameter.
public setDescription ( string $description )
$description string The description

setName() public method

Sets the name for this parameter.
public setName ( string $name )
$name string The name

setPart() public method

Sets the part.
public setPart ( Part $part )
$part Part The part to set

setSiPrefix() public method

Sets the si prefix for this parameter.
public setSiPrefix ( SiPrefix $prefix = null )
$prefix PartKeepr\SiPrefixBundle\Entity\SiPrefix The prefix to set, or null

setUnit() public method

Sets the unit.
public setUnit ( Unit $unit = null )
$unit PartKeepr\UnitBundle\Entity\Unit The unit to set

setValue() public method

Sets the value.
public setValue ( float $value )
$value float The value to set