1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?php
- namespace AliPay;
- use WeChat\Contracts\BasicAliPay;
- class Trade extends BasicAliPay
- {
-
- public function setMethod($method)
- {
- $this->options->set('method', $method);
- return $this;
- }
-
- public function getMethod()
- {
- return $this->options->get('method');
- }
-
- public function setOption($option = [])
- {
- foreach ($option as $key => $vo) {
- $this->options->set($key, $vo);
- }
- return $this;
- }
-
- public function getOption()
- {
- return $this->options->get();
- }
-
- public function apply($options)
- {
- return $this->getResult($options);
- }
- }
|