summaryrefslogtreecommitdiffstats
path: root/lib/public/command
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-16 17:00:08 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-16 17:00:08 +0200
commit7644950b48b094bfe5675348aefb7cf5747d325b (patch)
treea1792e21239a86f471da99b454134a5d8533ef77 /lib/public/command
parent8653da6c16597959c7bd0f0b202747ff96204575 (diff)
downloadnextcloud-server-7644950b48b094bfe5675348aefb7cf5747d325b.tar.gz
nextcloud-server-7644950b48b094bfe5675348aefb7cf5747d325b.zip
Add @since tags to all methods in public namespace
* enhance the app development experience - you can look up the method introduction right inside the code without searching via git blame * easier to write apps for multiple versions
Diffstat (limited to 'lib/public/command')
-rw-r--r--lib/public/command/ibus.php8
-rw-r--r--lib/public/command/icommand.php7
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/public/command/ibus.php b/lib/public/command/ibus.php
index 237bbd3f40f..b27edc04742 100644
--- a/lib/public/command/ibus.php
+++ b/lib/public/command/ibus.php
@@ -21,11 +21,18 @@
namespace OCP\Command;
+/**
+ * Interface IBus
+ *
+ * @package OCP\Command
+ * @since 8.1.0
+ */
interface IBus {
/**
* Schedule a command to be fired
*
* @param \OCP\Command\ICommand | callable $command
+ * @since 8.1.0
*/
public function push($command);
@@ -33,6 +40,7 @@ interface IBus {
* Require all commands using a trait to be run synchronous
*
* @param string $trait
+ * @since 8.1.0
*/
public function requireSync($trait);
}
diff --git a/lib/public/command/icommand.php b/lib/public/command/icommand.php
index b3a7fc8d9a0..6ec07575b44 100644
--- a/lib/public/command/icommand.php
+++ b/lib/public/command/icommand.php
@@ -21,9 +21,16 @@
namespace OCP\Command;
+/**
+ * Interface ICommand
+ *
+ * @package OCP\Command
+ * @since 8.1.0
+ */
interface ICommand {
/**
* Run the command
+ * @since 8.1.0
*/
public function handle();
}