Add IShare::getServer

Fixes #91
This commit is contained in:
Robin Appelman 2020-05-15 17:28:48 +02:00
commit ed09f6c0b7
3 changed files with 15 additions and 0 deletions

View file

@ -150,4 +150,11 @@ interface IShare {
* @return INotifyHandler * @return INotifyHandler
*/ */
public function notify($path); public function notify($path);
/**
* Get the IServer instance for this share
*
* @return IServer
*/
public function getServer(): IServer;
} }

View file

@ -350,6 +350,10 @@ class NativeShare extends AbstractShare {
return $share->notify($path); return $share->notify($path);
} }
public function getServer(): IServer {
return $this->server;
}
public function __destruct() { public function __destruct() {
unset($this->state); unset($this->state);
} }

View file

@ -552,6 +552,10 @@ class Share extends AbstractShare {
return $acls; return $acls;
} }
public function getServer(): IServer {
return $this->server;
}
public function __destruct() { public function __destruct() {
unset($this->connection); unset($this->connection);
} }