Exemple #1
0
 public static function createSale()
 {
     $sale = new Sale();
     $sale->setAmount(AmountTest::createAmount());
     $sale->setCreate_time(self::$createTime);
     $sale->setId(self::$id);
     $sale->setLinks(array(LinkTest::createLink()));
     $sale->setParent_payment(self::$parentPayment);
     $sale->setState(self::$state);
     return $sale;
 }