More Product Model optimisation
This commit is contained in:
@@ -20,30 +20,6 @@ interface ProductItem
|
||||
*/
|
||||
public function allowance_string(): string;
|
||||
|
||||
/**
|
||||
* Return the contract term for this product when sold as a service
|
||||
*
|
||||
* @return int Months
|
||||
*/
|
||||
public function getContractTermAttribute(): int;
|
||||
|
||||
/**
|
||||
* Return the product cost
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getCostAttribute(): float;
|
||||
|
||||
/**
|
||||
* Return the supplier class
|
||||
* If there is a model relationship return:
|
||||
* return $this->getRelationValue('supplier');
|
||||
* otherwise return a stdClass with name
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSupplierAttribute();
|
||||
|
||||
/**
|
||||
* Does this offering capture usage information
|
||||
*
|
||||
|
Reference in New Issue
Block a user