Move more product::class methods into __get(), no functional changes
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Consistent Details on Products
|
||||
*/
|
||||
namespace App\Traits;
|
||||
|
||||
use App\Models\Invoice;
|
||||
|
||||
trait ProductDetails
|
||||
{
|
||||
/**
|
||||
* Return a human friendly name for the billing interval
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBillingIntervalStringAttribute(): string
|
||||
{
|
||||
return Invoice::billing_name(static::getBillingIntervalAttribute());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user