ModuleOptions   A
last analyzed

Complexity

Total Complexity 20

Size/Duplication

Total Lines 158
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 20
lcom 0
cbo 1
dl 0
loc 158
ccs 0
cts 86
cp 0
rs 10
c 2
b 1
f 0

20 Methods

Rating   Name   Duplication   Size   Complexity  
A getProductDocumentPath() 0 4 1
A setProductDocumentPath() 0 4 1
A getProductImagePath() 0 4 1
A setProductImagePath() 0 4 1
A getCategoryImagePath() 0 4 1
A setCategoryImagePath() 0 4 1
A getOptionImagePath() 0 4 1
A setOptionImagePath() 0 4 1
A getProductImageUpload() 0 4 1
A getProductDocumentUpload() 0 4 1
A getCategoryImageUpload() 0 4 1
A getOptionImageUpload() 0 4 1
A getCatalogPartialDir() 0 4 1
A getCatalogManagerPartialDir() 0 4 1
A setProductImageUpload() 0 5 1
A setProductDocumentUpload() 0 5 1
A setCategoryImageUpload() 0 5 1
A setOptionImageUpload() 0 5 1
A setCatalogPartialDir() 0 5 1
A setCatalogManagerPartialDir() 0 5 1
1
<?php
2
3
namespace SpeckCatalog\Options;
4
5
use Zend\Stdlib\AbstractOptions;
6
7
class ModuleOptions extends AbstractOptions
8
{
9
    protected $catalogPartialDir        = '/speck-catalog/catalog/partial/';
10
    protected $catalogManagerPartialDir = '/speck-catalog/catalog-manager/partial/';
11
12
    protected $productImagePath         = '/media/product-image';
13
    protected $productImageUpload       = '/public/media/product-image';
14
15
    protected $productDocumentPath      = '/media/product-document';
16
    protected $productDocumentUpload    = '/public/media/product-document';
17
18
    protected $categoryImagePath        = '/media/category-image';
19
    protected $categoryImageUpload      = '/public/media/category-image';
20
21
    protected $optionImagePath          = '/media/option-image';
22
    protected $optionImageUpload        = '/public/media/option-image';
23
24
    public function getProductDocumentPath()
25
    {
26
        return $this->productDocumentPath;
27
    }
28
29
    public function setProductDocumentPath($productDocumentPath)
30
    {
31
        $this->productDocumentPath = $productDocumentPath;
32
    }
33
34
    public function getProductImagePath()
35
    {
36
        return $this->productImagePath;
37
    }
38
39
    public function setProductImagePath($productImagePath)
40
    {
41
        $this->productImagePath = $productImagePath;
42
    }
43
44
    public function getCategoryImagePath()
45
    {
46
        return $this->categoryImagePath;
47
    }
48
49
    public function setCategoryImagePath($categoryImagePath)
50
    {
51
        $this->categoryImagePath = $categoryImagePath;
52
    }
53
54
    public function getOptionImagePath()
55
    {
56
        return $this->optionImagePath;
57
    }
58
59
    public function setOptionImagePath($optionImagePath)
60
    {
61
        $this->optionImagePath = $optionImagePath;
62
    }
63
64
    public function getProductImageUpload()
65
    {
66
        return $this->productImageUpload;
67
    }
68
69
    public function setProductImageUpload($productImageUpload)
70
    {
71
        $this->productImageUpload = $productImageUpload;
72
        return $this;
73
    }
74
75
    /**
76
     * @return productDocumentUpload
77
     */
78
    public function getProductDocumentUpload()
79
    {
80
        return $this->productDocumentUpload;
81
    }
82
83
    /**
84
     * @param $productDocumentUpload
85
     * @return self
86
     */
87
    public function setProductDocumentUpload($productDocumentUpload)
88
    {
89
        $this->productDocumentUpload = $productDocumentUpload;
90
        return $this;
91
    }
92
93
    /**
94
     * @return categoryImageUpload
95
     */
96
    public function getCategoryImageUpload()
97
    {
98
        return $this->categoryImageUpload;
99
    }
100
101
    /**
102
     * @param $categoryImageUpload
103
     * @return self
104
     */
105
    public function setCategoryImageUpload($categoryImageUpload)
106
    {
107
        $this->categoryImageUpload = $categoryImageUpload;
108
        return $this;
109
    }
110
111
    /**
112
     * @return optionImageUpload
113
     */
114
    public function getOptionImageUpload()
115
    {
116
        return $this->optionImageUpload;
117
    }
118
119
    /**
120
     * @param $optionImageUpload
121
     * @return self
122
     */
123
    public function setOptionImageUpload($optionImageUpload)
124
    {
125
        $this->optionImageUpload = $optionImageUpload;
126
        return $this;
127
    }
128
129
    /**
130
     * @return catalogPartialDir
131
     */
132
    public function getCatalogPartialDir()
133
    {
134
        return $this->catalogPartialDir;
135
    }
136
137
    /**
138
     * @param $catalogPartialDir
139
     * @return self
140
     */
141
    public function setCatalogPartialDir($partialDir)
142
    {
143
        $this->catalogPartialDir = $partialDir;
144
        return $this;
145
    }
146
147
    /**
148
     * @return catalogManagerPartialDir
149
     */
150
    public function getCatalogManagerPartialDir()
151
    {
152
        return $this->catalogManagerPartialDir;
153
    }
154
155
    /**
156
     * @param $catalogManagerPartialDir
157
     * @return self
158
     */
159
    public function setCatalogManagerPartialDir($partialDir)
160
    {
161
        $this->catalogManagerPartialDir = $partialDir;
162
        return $this;
163
    }
164
}
165