@@ -112,6 +112,9 @@ discard block |
||
| 112 | 112 | return new NativeFileInfo($this, $path, basename($path), $this->getStat($path)); |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | + /** |
|
| 116 | + * @param string $path |
|
| 117 | + */ |
|
| 115 | 118 | private function getStat($path) { |
| 116 | 119 | return $this->getState()->stat($this->buildUrl($path)); |
| 117 | 120 | } |
@@ -276,7 +279,7 @@ discard block |
||
| 276 | 279 | * |
| 277 | 280 | * @param string $path |
| 278 | 281 | * @param string $attribute attribute to get the info |
| 279 | - * @param mixed $value |
|
| 282 | + * @param integer $value |
|
| 280 | 283 | * @return string the attribute value |
| 281 | 284 | */ |
| 282 | 285 | public function setAttribute($path, $attribute, $value) { |
@@ -290,7 +293,7 @@ discard block |
||
| 290 | 293 | /** |
| 291 | 294 | * @param string $path |
| 292 | 295 | * @param int $mode a combination of FileInfo::MODE_READONLY, FileInfo::MODE_ARCHIVE, FileInfo::MODE_SYSTEM and FileInfo::MODE_HIDDEN, FileInfo::NORMAL |
| 293 | - * @return mixed |
|
| 296 | + * @return string |
|
| 294 | 297 | */ |
| 295 | 298 | public function setMode($path, $mode) { |
| 296 | 299 | return $this->setAttribute($path, 'system.dos_attr.mode', $mode); |