PHP 클래스 PartKeepr\PartBundle\Entity\PartMeasurementUnit

상속: extends PartKeepr\CoreBundle\Entity\BaseEntity
파일 보기 프로젝트 열기: partkeepr/PartKeepr 1 사용 예제들

공개 메소드들

메소드 설명
__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