Merge pull request #1271 from nextcloud/fix-docs-for-notifications
Null !== void, those methods are void
This commit is contained in:
commit
12736a3592
|
@ -60,7 +60,6 @@ class Manager implements IManager {
|
||||||
/**
|
/**
|
||||||
* @param \Closure $service The service must implement IApp, otherwise a
|
* @param \Closure $service The service must implement IApp, otherwise a
|
||||||
* \InvalidArgumentException is thrown later
|
* \InvalidArgumentException is thrown later
|
||||||
* @return null
|
|
||||||
* @since 8.2.0
|
* @since 8.2.0
|
||||||
*/
|
*/
|
||||||
public function registerApp(\Closure $service) {
|
public function registerApp(\Closure $service) {
|
||||||
|
@ -73,7 +72,6 @@ class Manager implements IManager {
|
||||||
* \InvalidArgumentException is thrown later
|
* \InvalidArgumentException is thrown later
|
||||||
* @param \Closure $info An array with the keys 'id' and 'name' containing
|
* @param \Closure $info An array with the keys 'id' and 'name' containing
|
||||||
* the app id and the app name
|
* the app id and the app name
|
||||||
* @return null
|
|
||||||
* @since 8.2.0 - Parameter $info was added in 9.0.0
|
* @since 8.2.0 - Parameter $info was added in 9.0.0
|
||||||
*/
|
*/
|
||||||
public function registerNotifier(\Closure $service, \Closure $info) {
|
public function registerNotifier(\Closure $service, \Closure $info) {
|
||||||
|
@ -164,7 +162,6 @@ class Manager implements IManager {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param INotification $notification
|
* @param INotification $notification
|
||||||
* @return null
|
|
||||||
* @throws \InvalidArgumentException When the notification is not valid
|
* @throws \InvalidArgumentException When the notification is not valid
|
||||||
* @since 8.2.0
|
* @since 8.2.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -31,7 +31,6 @@ namespace OCP\Notification;
|
||||||
interface IApp {
|
interface IApp {
|
||||||
/**
|
/**
|
||||||
* @param INotification $notification
|
* @param INotification $notification
|
||||||
* @return null
|
|
||||||
* @throws \InvalidArgumentException When the notification is not valid
|
* @throws \InvalidArgumentException When the notification is not valid
|
||||||
* @since 9.0.0
|
* @since 9.0.0
|
||||||
*/
|
*/
|
||||||
|
@ -39,7 +38,6 @@ interface IApp {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param INotification $notification
|
* @param INotification $notification
|
||||||
* @return null
|
|
||||||
* @since 9.0.0
|
* @since 9.0.0
|
||||||
*/
|
*/
|
||||||
public function markProcessed(INotification $notification);
|
public function markProcessed(INotification $notification);
|
||||||
|
|
|
@ -32,7 +32,6 @@ interface IManager extends IApp, INotifier {
|
||||||
/**
|
/**
|
||||||
* @param \Closure $service The service must implement IApp, otherwise a
|
* @param \Closure $service The service must implement IApp, otherwise a
|
||||||
* \InvalidArgumentException is thrown later
|
* \InvalidArgumentException is thrown later
|
||||||
* @return null
|
|
||||||
* @since 9.0.0
|
* @since 9.0.0
|
||||||
*/
|
*/
|
||||||
public function registerApp(\Closure $service);
|
public function registerApp(\Closure $service);
|
||||||
|
@ -42,7 +41,6 @@ interface IManager extends IApp, INotifier {
|
||||||
* \InvalidArgumentException is thrown later
|
* \InvalidArgumentException is thrown later
|
||||||
* @param \Closure $info An array with the keys 'id' and 'name' containing
|
* @param \Closure $info An array with the keys 'id' and 'name' containing
|
||||||
* the app id and the app name
|
* the app id and the app name
|
||||||
* @return null
|
|
||||||
* @since 9.0.0
|
* @since 9.0.0
|
||||||
*/
|
*/
|
||||||
public function registerNotifier(\Closure $service, \Closure $info);
|
public function registerNotifier(\Closure $service, \Closure $info);
|
||||||
|
|
Loading…
Reference in New Issue