* @Date : 2019/11/20 3:39 下午 * @return bool */ public function canPay(): bool { return $this->can('pay'); } /** * Notes: 是否可取消 * * @Author: * @Date : 2019/11/20 3:39 下午 * @return bool */ public function canCancel(): bool { return in_array($this->state, [Order::STATUS_INIT,]); } /** * 可发货 * * @Author: * @Date :2018-10-22T17:12:13+0800 * @return boolean */ public function canDeliver(): bool { return $this->can('deliver'); } /** * 可签收 * * @Author: * @Date :2018-10-22T17:12:43+0800 * @return boolean */ public function canSign(): bool { return $this->can('sign'); } /** * 可完成订单 * * @Author: * @Date :2018-10-25T17:35:12+0800 * @return boolean */ public function canComplete(): bool { return $this->can('complete'); } /** * 可申请退款 * * @Author: * @Date :2018-10-22T17:11:45+0800 * @return boolean */ public function canRefund(): bool { return $this->can('refund'); } }