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

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

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

Метод Описание
__construct ( ) Creates a new part unit.
getName ( ) : string Returns the name for this unit.
getParts ( ) : ArrayCollection Returns the parts for this PartUnit.
getShortName ( ) : string Returns the short name for this unit.
isDefault ( ) : boolean Returns if the unit is default or not.
setDefault ( boolean $default ) Defines if the unit is default or not.
setName ( string $name ) Sets the name for this unit.
setShortName ( string $shortName ) Sets the short name for this unit.

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

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

Sets the default to false.
public __construct ( )

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

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

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

Returns the parts for this PartUnit.
public getParts ( ) : ArrayCollection
Результат Doctrine\Common\Collections\ArrayCollection

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

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

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

Returns if the unit is default or not.
public isDefault ( ) : boolean
Результат boolean True if the unit is default, false for not

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

Defines if the unit is default or not.
public setDefault ( boolean $default )
$default boolean True if the unit is default, false otherwise

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

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

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

Short names are used for list views (e.g. if your unit name is "metres", your short name could be "m")
public setShortName ( string $shortName )
$shortName string The short name