id; data_set($this, self::COL_NAME_SMS_PROVIDER_ID, $id); return $this; } public function smsProvider(): BelongsTo { if ($this instanceof Model) { return $this->belongsTo(SMSProvider::class); } else { throw new LogicException("不正"); } } }