1 | <?php |
||
10 | class ModuleOptions extends AbstractOptions |
||
11 | { |
||
12 | /** |
||
13 | * Filesystem registered in service manager |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $source = ''; |
||
18 | |||
19 | /** |
||
20 | * Cache service name registered in service manager |
||
21 | * should implement StorageInterface |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $cache = ''; |
||
26 | |||
27 | /** |
||
28 | * Image driver name ex.: gd, imagic |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $driver = 'gd'; |
||
33 | |||
34 | /** |
||
35 | * Cache enabled status |
||
36 | * |
||
37 | * @var bool |
||
38 | */ |
||
39 | protected $cache_enabled = false; |
||
40 | |||
41 | /** |
||
42 | * Config for transformers manager |
||
43 | * this allows adding custom transformers |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | protected $transformers = []; |
||
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getSource() |
||
56 | |||
57 | /** |
||
58 | * @param string $source |
||
59 | */ |
||
60 | public function setSource($source) |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getDriver() |
||
72 | |||
73 | /** |
||
74 | * @param string $driver |
||
75 | */ |
||
76 | public function setDriver($driver) |
||
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getCache() |
||
88 | |||
89 | /** |
||
90 | * @param string $cache |
||
91 | */ |
||
92 | public function setCache($cache) |
||
96 | |||
97 | /** |
||
98 | * @return boolean |
||
99 | */ |
||
100 | public function isCacheEnabled() |
||
104 | |||
105 | /** |
||
106 | * @param boolean $cache_enabled |
||
107 | */ |
||
108 | public function setCacheEnabled($cache_enabled) |
||
112 | |||
113 | /** |
||
114 | * @return array |
||
115 | */ |
||
116 | public function getTransformers() |
||
120 | |||
121 | /** |
||
122 | * @param array $transformers |
||
123 | */ |
||
124 | public function setTransformers($transformers) |
||
128 | } |
||
129 |