@@ -36,6 +36,9 @@ discard block |
||
36 | 36 | const EVENT_YML = 'event.yml'; |
37 | 37 | private $app; |
38 | 38 | |
39 | + /** |
|
40 | + * @param \Silex\Application $app |
|
41 | + */ |
|
39 | 42 | public function __construct($app) |
40 | 43 | { |
41 | 44 | $this->app = $app; |
@@ -98,6 +101,9 @@ discard block |
||
98 | 101 | } |
99 | 102 | } |
100 | 103 | |
104 | + /** |
|
105 | + * @param string $dir |
|
106 | + */ |
|
101 | 107 | public function unpackPluginArchive($archive, $dir) |
102 | 108 | { |
103 | 109 | $extension = pathinfo($archive, PATHINFO_EXTENSION); |
@@ -116,6 +122,9 @@ discard block |
||
116 | 122 | } |
117 | 123 | } |
118 | 124 | |
125 | + /** |
|
126 | + * @param string $dir |
|
127 | + */ |
|
119 | 128 | public function checkPluginArchiveContent($dir) |
120 | 129 | { |
121 | 130 | try { |
@@ -153,6 +162,9 @@ discard block |
||
153 | 162 | } |
154 | 163 | } |
155 | 164 | |
165 | + /** |
|
166 | + * @param string $yml |
|
167 | + */ |
|
156 | 168 | public function readYml($yml) |
157 | 169 | { |
158 | 170 | if (file_exists($yml)) { |
@@ -170,6 +182,9 @@ discard block |
||
170 | 182 | // ディレクトリ名などに使われれるので厳しめ |
171 | 183 | } |
172 | 184 | |
185 | + /** |
|
186 | + * @param string $path |
|
187 | + */ |
|
173 | 188 | public function deleteFile($path) |
174 | 189 | { |
175 | 190 | $f = new Filesystem(); |
@@ -189,6 +204,9 @@ discard block |
||
189 | 204 | return $this->app['config']['plugin_realdir'].'/'.$name; |
190 | 205 | } |
191 | 206 | |
207 | + /** |
|
208 | + * @param string $d |
|
209 | + */ |
|
192 | 210 | public function createPluginDir($d) |
193 | 211 | { |
194 | 212 | $b = @mkdir($d); |
@@ -248,6 +266,9 @@ discard block |
||
248 | 266 | return $p; |
249 | 267 | } |
250 | 268 | |
269 | + /** |
|
270 | + * @param string $method |
|
271 | + */ |
|
251 | 272 | public function callPluginManagerMethod($meta, $method) |
252 | 273 | { |
253 | 274 | $class = '\\Plugin'.'\\'.$meta['code'].'\\'.'PluginManager'; |
@@ -142,7 +142,7 @@ |
||
142 | 142 | * 仮受注情報作成 |
143 | 143 | * |
144 | 144 | * @param $Customer |
145 | - * @param $preOrderId |
|
145 | + * @param string $preOrderId |
|
146 | 146 | * @return mixed |
147 | 147 | * @throws \Doctrine\ORM\NoResultException |
148 | 148 | * @throws \Doctrine\ORM\NonUniqueResultException |