RepeatOrdersAdmin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 52
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A urlSegmenter() 0 4 1
1
<?php
2
3
4
/**
5
 *
6
 * @authors: Nicolaas [at] Sunny Side Up .co.nz
7
 * @package: ecommerce_repeatorders
8
 * @sub-package: cms
9
 **/
10
class RepeatOrdersAdmin extends ModelAdminEcommerceBaseClass
11
{
12
    /**
13
     * standard SS variable.
14
     *
15
     * @var string
16
     */
17
    private static $managed_models = 'RepeatOrder';
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
18
19
    /**
20
     * standard SS variable.
21
     *
22
     * @var string
23
     */
24
    private static $url_segment = 'repeat-orders';
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
25
26
    /**
27
     * standard SS variable.
28
     *
29
     * @var string
30
     */
31
    private static $menu_title = 'Repeat Orders';
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
32
33
    /**
34
     * standard SS variable.
35
     *
36
     * @var int
37
     */
38
    private static $menu_priority = 3.13;
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
39
40
    /**
41
     * Change this variable if you don't want the Import from CSV form to appear.
42
     * This variable can be a boolean or an array.
43
     * If array, you can list className you want the form to appear on. i.e. array('myClassOne','myClasstwo').
44
     */
45
    public $showImportForm = false;
46
47
    /**
48
     * standard SS variable.
49
     *
50
     * @var string
51
     */
52
    private static $menu_icon = 'ecommerce/images/icons/money-file.gif';
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
53
54
55
    public function urlSegmenter()
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
56
    {
57
        return $this->config()->get('url_segment');
58
    }
59
60
61
}
62