PHP Class PartKeepr\StatisticBundle\Entity\StatisticSnapshot

Show file Open project: partkeepr/PartKeepr Class Usage Examples

Public Methods

Method Description
__construct ( ) Creates a new statistic snapshot.
getCategories ( ) : integer Returns the amount of categories.
getDateTime ( ) : DateTime Returns the date+time for the snapshot.
getId ( ) : integer Returns the ID of this snapshot.
getParts ( ) : integer Returns the amount of overall parts for the snapshot.
getUnits ( )
setCategories ( integer $categories ) Sets the amount of categories for the snapshot.
setDateTime ( DateTime $dateTime ) Sets the date+time for the snapshot.
setParts ( integer $parts ) Sets the amount of overall parts for the snapshot.

Method Details

__construct() public method

Creates a new statistic snapshot.
public __construct ( )

getCategories() public method

Returns the amount of categories.
public getCategories ( ) : integer
return integer The amount of categories

getDateTime() public method

Returns the date+time for the snapshot.
public getDateTime ( ) : DateTime
return DateTime The date+time for the snapshot

getId() public method

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

getParts() public method

Returns the amount of overall parts for the snapshot.
public getParts ( ) : integer
return integer The amount of parts

getUnits() public method

public getUnits ( )

setCategories() public method

Sets the amount of categories for the snapshot.
public setCategories ( integer $categories )
$categories integer The amount of categories

setDateTime() public method

Sets the date+time for the snapshot.
public setDateTime ( DateTime $dateTime )
$dateTime DateTime The date+time for the snapshot

setParts() public method

Sets the amount of overall parts for the snapshot.
public setParts ( integer $parts )
$parts integer The amount of parts