public static function createSale() { $sale = new Sale(); $sale->setAmount(AmountTest::createAmount()); $sale->setCreateTime(self::$createTime); $sale->setId(self::$id); $sale->setParentPayment(self::$parentPayment); $sale->setState(self::$state); return $sale; }
private function createSale() { $sale = new Sale(); $sale->setAmount(AmountTest::createAmount()); $sale->setCreateTime(self::$createTime); $sale->setId(self::$id); $sale->setParentPayment(self::$parentPayment); $sale->setState(self::$state); $this->tFee = new Currency(); $this->tFee->setCurrency('AUD'); $this->tFee->setValue('0.10'); $sale->setTransactionFee($this->tFee); return $sale; }