for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverShop\Model\Modifiers;
/**
* SubTotal modifier provides a way to display subtotal within the list of modifiers.
*
* @package shop
* @subpackage modifiers
*/
class SubTotal extends OrderModifier
{
private static $defaults = [
$defaults
'Type' => 'Ignored',
];
private static $singular_name = 'Sub Total';
$singular_name
private static $plural_name = 'Sub Totals';
$plural_name
public function value($incoming)
return $this->Amount = $incoming;
}