mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-25 04:27:22 +08:00
fix duration_text attribute
This commit is contained in:
+3
-3
@@ -68,10 +68,10 @@ class Exam extends NexusModel
|
|||||||
return self::$discovers[$this->is_discovered]['text'] ?? '';
|
return self::$discovers[$this->is_discovered]['text'] ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDurationTextAttribute($value): string
|
public function getDurationTextAttribute(): string
|
||||||
{
|
{
|
||||||
if ($value > 0) {
|
if ($this->duration > 0) {
|
||||||
return $value . ' Days';
|
return $this->duration . ' Days';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user