@@ -66,6 +66,9 @@ discard block |
||
| 66 | 66 | return $this->name; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param string $path |
|
| 71 | + */ |
|
| 69 | 72 | private function buildUrl($path) { |
| 70 | 73 | $this->verifyPath($path); |
| 71 | 74 | $url = sprintf('smb://%s/%s', $this->server->getHost(), $this->name); |
@@ -116,7 +119,7 @@ discard block |
||
| 116 | 119 | * Get fstat |
| 117 | 120 | * |
| 118 | 121 | * @param string $path |
| 119 | - * @return array |
|
| 122 | + * @return callable |
|
| 120 | 123 | */ |
| 121 | 124 | private function getStat($path) { |
| 122 | 125 | return $this->getState()->stat($this->buildUrl($path)); |
@@ -298,7 +301,7 @@ discard block |
||
| 298 | 301 | * |
| 299 | 302 | * @param string $path |
| 300 | 303 | * @param string $attribute attribute to get the info |
| 301 | - * @param string|int $value |
|
| 304 | + * @param integer $value |
|
| 302 | 305 | * @return mixed the attribute value |
| 303 | 306 | */ |
| 304 | 307 | public function setAttribute($path, $attribute, $value) { |
@@ -18,8 +18,6 @@ |
||
| 18 | 18 | use Icewind\SMB\IServer; |
| 19 | 19 | use Icewind\SMB\ISystem; |
| 20 | 20 | use Icewind\Streams\CallbackWrapper; |
| 21 | -use Icewind\SMB\Native\NativeShare; |
|
| 22 | -use Icewind\SMB\Native\NativeServer; |
|
| 23 | 21 | |
| 24 | 22 | class Share extends AbstractShare { |
| 25 | 23 | /** |