SubTotal   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A value() 0 3 1
1
<?php
2
3
namespace SilverShop\Model\Modifiers;
4
5
/**
6
 * SubTotal modifier provides a way to display subtotal within the list of modifiers.
7
 *
8
 * @package    shop
9
 * @subpackage modifiers
10
 */
11
class SubTotal extends OrderModifier
12
{
13
    private static $defaults = [
0 ignored issues
show
introduced by
The private property $defaults is not used, and could be removed.
Loading history...
14
        'Type' => 'Ignored',
15
    ];
16
17
    private static $singular_name = 'Sub Total';
0 ignored issues
show
introduced by
The private property $singular_name is not used, and could be removed.
Loading history...
18
19
    private static $plural_name = 'Sub Totals';
0 ignored issues
show
introduced by
The private property $plural_name is not used, and could be removed.
Loading history...
20
21
    public function value($incoming)
22
    {
23
        return $this->Amount = $incoming;
24
    }
25
}
26