public function setCount($count) { $this->count = $count; return $this; }
public static function createPaymentHistory() { $history = new PaymentHistory(); $history->setCount(self::$count); $history->setNext_id(self::$nextId); $history->setPayments(array(PaymentTest::createPayment())); return $history; }