PHP Class Knp\Bundle\KnpBundlesBundle\Entity\Score

Show file Open project: KnpLabs/KnpBundles Class Usage Examples

Protected Properties

Property Type Description
$bundle Bundle
$date Date of the score snapshot
$hash Unique score hash
$id
$value Internal value of the Bundle, based on several indicators Defines the Bundle position in lists and searches

Public Methods

Method Description
__construct ( )
__toString ( )
getBundle ( ) : null | Bundle
getDate ( ) : DateTime Get the date of the last commit
getHash ( )
getValue ( ) : integer Get value
setBundle ( Bundle $bundle = null )
setDate ( DateTime $date ) Set date
setValue ( integer $value ) Set value

Method Details

__construct() public method

public __construct ( )

__toString() public method

public __toString ( )

getBundle() public method

public getBundle ( ) : null | Bundle
return null | Bundle

getDate() public method

Get the date of the last commit
public getDate ( ) : DateTime
return DateTime

getHash() public method

public getHash ( )

getValue() public method

Get value
public getValue ( ) : integer
return integer

setBundle() public method

public setBundle ( Bundle $bundle = null )
$bundle Bundle

setDate() public method

Set date
public setDate ( DateTime $date )
$date DateTime

setValue() public method

Set value
public setValue ( integer $value )
$value integer

Property Details

$bundle protected property

Bundle
protected $bundle

$date protected property

Date of the score snapshot
protected $date

$hash protected property

Unique score hash
protected $hash

$id protected property

protected $id

$value protected property

Internal value of the Bundle, based on several indicators Defines the Bundle position in lists and searches
protected $value