public function setMerchant(Merchant $merchant) { update_option(self::UUID, $merchant->getUuid()); update_option(self::DESTINATION, $merchant->getDestination()); update_option(self::HOST, $merchant->getHost()); update_option(self::OFFER, $merchant->getOffer()); update_option(self::PASSWORD, $merchant->getPassword()); update_option(self::PATH, $merchant->getPath()); update_option(self::IMAGE, $merchant->getImage()); update_option(self::TERMS, $merchant->getTerms()); update_option(self::POLICY, $merchant->getPolicy()); $this->merchant = $merchant; return $this; }