PHP Class PartKeepr\PartBundle\Entity\PartParameter

Afficher le fichier Open project: partkeepr/PartKeepr

Méthodes publiques

Méthode 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

Méthode Description
recalculateRawValue ( )

Method Details

getDescription() public méthode

Returns the description.
public getDescription ( ) : string
Résultat string The description

getId() public méthode

Returns the ID for this object.
public getId ( ) : integer
Résultat integer The ID for this object

getName() public méthode

Returns the name for this parameter.
public getName ( ) : string
Résultat string The name for this parameter

getPart() public méthode

Returns the part.
public getPart ( ) : Part
Résultat Part the part

getSiPrefix() public méthode

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

getUnit() public méthode

Returns the unit.
public getUnit ( ) : Unit
Résultat PartKeepr\UnitBundle\Entity\Unit the unit

getValue() public méthode

Returns the value.
public getValue ( ) : float
Résultat float The value

setDescription() public méthode

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

setName() public méthode

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

setPart() public méthode

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

setSiPrefix() public méthode

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 méthode

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

setValue() public méthode

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