Move more product::class methods into __get(), no functional changes
This commit is contained in:
@@ -28,6 +28,7 @@ abstract class Type extends Model
|
||||
{
|
||||
return match ($key) {
|
||||
'category' => (new \ReflectionClass($this))->getShortName(),
|
||||
'category_lc' => strtolower($this->category),
|
||||
'category_name' => static::category_name ?: $this->category,
|
||||
|
||||
default => parent::__get($key),
|
||||
|
Reference in New Issue
Block a user