| @@ 90-102 (lines=13) @@ | ||
| 87 | * |
|
| 88 | * @throws Exception |
|
| 89 | */ |
|
| 90 | public function setBusiness(Business $business) |
|
| 91 | { |
|
| 92 | if (!is_null($business)) { |
|
| 93 | try { |
|
| 94 | $business->checkParams(); |
|
| 95 | } catch (Exception $e) { |
|
| 96 | throw new Exception($e->getMessage()); |
|
| 97 | } |
|
| 98 | $this->business = $business; |
|
| 99 | $this->refundInfo = null; |
|
| 100 | } |
|
| 101 | ||
| 102 | return $this; |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| @@ 120-132 (lines=13) @@ | ||
| 117 | * |
|
| 118 | * @throws Exception |
|
| 119 | */ |
|
| 120 | public function setBusiness(Business $business) |
|
| 121 | { |
|
| 122 | if (!is_null($business)) { |
|
| 123 | try { |
|
| 124 | $business->checkParams(); |
|
| 125 | } catch (Exception $e) { |
|
| 126 | throw new Exception($e->getMessage()); |
|
| 127 | } |
|
| 128 | $this->business = $business; |
|
| 129 | $this->unifiedOrder = null; |
|
| 130 | } |
|
| 131 | ||
| 132 | return $this; |
|
| 133 | } |
|
| 134 | ||
| 135 | /** |
|