SubTotal::value()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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