. */ /** * An interface to the discount table in the database */ class Discount extends OfferItem { use StandardCalculatable; /** {@inheritDoc} */ public $table = 'discount', $fillable_columns = ['offerId', 'title', 'description', 'value', 'VAT_percentage']; /** {@inheritDoc} */ public function calculateSubtotal() { return - $this->value; } }