public function __construct(Merchant $merchant, $tid) { $this->setMerchant($merchant); $this->order = new Order(); $this->paymentMethod = new PaymentMethod(); $this->setTidOrOrderNumber($tid); }