'integer', ]; protected $attributes = [ 'result_type' => 'fixed', 'sort_order' => 0, ]; public const RESULT_FIXED = 'fixed'; public const RESULT_FORMULA = 'formula'; // ========================================================================= // Relationships // ========================================================================= public function formula(): BelongsTo { return $this->belongsTo(QuoteFormula::class, 'formula_id'); } // ========================================================================= // Helper Methods // ========================================================================= /** * 매핑 조건 표시 문자열 */ public function getConditionLabelAttribute(): string { return "{$this->source_variable} = '{$this->source_value}'"; } }