PHP Класс PartKeepr\UnitBundle\Entity\Unit

Наследование: extends PartKeepr\CoreBundle\Entity\BaseEntity
Показать файл Открыть проект Примеры использования класса

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

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

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

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

Creates a new Unit.
public __construct ( )

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

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

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

Returns the si-prefix list for this unit.
public getPrefixes ( ) : ArrayCollection
Результат Doctrine\Common\Collections\ArrayCollection An array of SiPrefix objects

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

Returns the symbol for this unit.
public getSymbol ( ) : string
Результат string The symbol

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

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

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

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

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

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