src/PHPDish/Bundle/UserBundle/Service/PointManager.php
public function createPointHistory(UserInterface $user, $amount, $type = null)
    {
        $history = new $this->pointHistoryEntity;
        $history->setUser($user)
            ->setAmount($amount)
            ->setType($type);
        return $history;
    }
public function createPointHistory(UserInterface $user, $amount, $type = null)
    {
        $history = new $this->pointHistoryEntity;
        $history->setUser($user)
            ->setAmount($amount)
            ->setType($type);
        return $history;
    }
{@inheritdoc}