PHP Класс PartKeepr\PartBundle\Entity\PartParameter

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
recalculateRawValue ( )

Описание методов

getDescription() публичный Метод

Returns the description.
public getDescription ( ) : string
Результат string The description

getId() публичный Метод

Returns the ID for this object.
public getId ( ) : integer
Результат integer The ID for this object

getName() публичный Метод

Returns the name for this parameter.
public getName ( ) : string
Результат string The name for this parameter

getPart() публичный Метод

Returns the part.
public getPart ( ) : Part
Результат Part the part

getSiPrefix() публичный Метод

Returns the si prefix for this parameter.
public getSiPrefix ( ) : SiPrefix
Результат PartKeepr\SiPrefixBundle\Entity\SiPrefix the si prefix or null

getUnit() публичный Метод

Returns the unit.
public getUnit ( ) : Unit
Результат PartKeepr\UnitBundle\Entity\Unit the unit

getValue() публичный Метод

Returns the value.
public getValue ( ) : float
Результат float The value

setDescription() публичный Метод

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

setName() публичный Метод

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

setPart() публичный Метод

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

setSiPrefix() публичный Метод

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

setUnit() публичный Метод

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

setValue() публичный Метод

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