Knp\Bundle\KnpBundlesBundle\Entity\Bundle::getScores PHP Method

getScores() public method

Get all historical scores indexed by date
public getScores ( integer $limit = null ) : array
$limit integer
return array
    public function getScores($limit = null)
    {
        if (null === $limit) {
            return $this->scores;
        }
        return $this->scores->slice(0, $limit);
    }