PHP Class PartKeepr\StatisticBundle\Entity\StatisticSnapshotUnit

Exibir arquivo Open project: partkeepr/PartKeepr Class Usage Examples

Public Methods

Method Description
getId ( ) : integer Returns the ID of this statistic snapshot unit.
getPartUnit ( ) : PartMeasurementUnit Returns the part unit for this entity.
getStatisticSnapshot ( ) : StatisticSnapshot Returns the snapshot this entity belongs to.
getStockLevel ( ) : integer Returns the stock level for this unit snapshot.
setPartUnit ( PartMeasurementUnit $unit ) Sets the part unit for this entity.
setStatisticSnapshot ( StatisticSnapshot $snapshot ) Sets the statistic snapshot this entity belongs to.
setStockLevel ( integer $stockLevel ) Sets the stock level for this unit snapshot.

Method Details

getId() public method

Returns the ID of this statistic snapshot unit.
public getId ( ) : integer
return integer The ID

getPartUnit() public method

Returns the part unit for this entity.
public getPartUnit ( ) : PartMeasurementUnit
return PartKeepr\PartBundle\Entity\PartMeasurementUnit The part unit

getStatisticSnapshot() public method

Returns the snapshot this entity belongs to.
public getStatisticSnapshot ( ) : StatisticSnapshot
return StatisticSnapshot The snapshot

getStockLevel() public method

Returns the stock level for this unit snapshot.
public getStockLevel ( ) : integer
return integer The stock level

setPartUnit() public method

Sets the part unit for this entity.
public setPartUnit ( PartMeasurementUnit $unit )
$unit PartKeepr\PartBundle\Entity\PartMeasurementUnit The part unit

setStatisticSnapshot() public method

Sets the statistic snapshot this entity belongs to.
public setStatisticSnapshot ( StatisticSnapshot $snapshot )
$snapshot StatisticSnapshot The snapshot

setStockLevel() public method

Sets the stock level for this unit snapshot.
public setStockLevel ( integer $stockLevel )
$stockLevel integer