PHP Class PartKeepr\UnitBundle\Entity\Unit

Inheritance: extends PartKeepr\CoreBundle\Entity\BaseEntity
ファイルを表示 Open project: partkeepr/PartKeepr Class Usage Examples

Public Methods

Method Description
__construct ( ) Creates a new Unit.
getName ( ) : string Returns the name for this unit.
getPrefixes ( ) : ArrayCollection Returns the si-prefix list for this unit.
getSymbol ( ) : string Returns the symbol for this unit.
setName ( string $name ) Sets the name for this unit.
setPrefixes ( $array ) Sets the SiPrefixes.
setSymbol ( string $symbol ) Sets the symbol for this unit.

Method Details

__construct() public method

Creates a new Unit.
public __construct ( )

getName() public method

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

getPrefixes() public method

Returns the si-prefix list for this unit.
public getPrefixes ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection An array of SiPrefix objects

getSymbol() public method

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

setName() public method

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

setPrefixes() public method

Sets the SiPrefixes.
public setPrefixes ( $array )
$array

setSymbol() public method

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