2021-12-24 01:14:01 +00:00
|
|
|
<?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
|
|
|
|
{
|
2022-02-01 05:40:46 +00:00
|
|
|
return Invoice::billing_name(static::getBillingIntervalAttribute());
|
2021-12-24 01:14:01 +00:00
|
|
|
}
|
|
|
|
}
|