diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-23 16:15:56 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-23 16:16:57 +0200 |
commit | 2c00587b5d2930f867cd74b6d9c0c7d696f1d61a (patch) | |
tree | ce35a57d27f97939cfb8bc7c7dc45d4631b12407 | |
parent | 1493e86deafb19f3f98ecee35389119daf2911a4 (diff) | |
download | nextcloud-server-2c00587b5d2930f867cd74b6d9c0c7d696f1d61a.tar.gz nextcloud-server-2c00587b5d2930f867cd74b6d9c0c7d696f1d61a.zip |
Add since-tag
-rw-r--r-- | lib/public/sabrepluginevent.php | 10 | ||||
-rw-r--r-- | lib/public/sabrepluginexception.php | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/sabrepluginevent.php b/lib/public/sabrepluginevent.php index 581113a42ea..fed3237166d 100644 --- a/lib/public/sabrepluginevent.php +++ b/lib/public/sabrepluginevent.php @@ -25,6 +25,9 @@ namespace OCP; use OCP\AppFramework\Http; use Symfony\Component\EventDispatcher\Event; +/** + * @since 8.2.0 + */ class SabrePluginEvent extends Event { /** @var int */ @@ -33,6 +36,9 @@ class SabrePluginEvent extends Event { /** @var string */ protected $message; + /** + * @since 8.2.0 + */ public function __construct() { $this->message = ''; $this->statusCode = Http::STATUS_OK; @@ -41,6 +47,7 @@ class SabrePluginEvent extends Event { /** * @param int $statusCode * @return self + * @since 8.2.0 */ public function setStatusCode($statusCode) { $this->statusCode = (int) $statusCode; @@ -50,6 +57,7 @@ class SabrePluginEvent extends Event { /** * @param string $message * @return self + * @since 8.2.0 */ public function setMessage($message) { $this->message = (string) $message; @@ -58,6 +66,7 @@ class SabrePluginEvent extends Event { /** * @return int + * @since 8.2.0 */ public function getStatusCode() { return $this->statusCode; @@ -65,6 +74,7 @@ class SabrePluginEvent extends Event { /** * @return string + * @since 8.2.0 */ public function getMessage() { return $this->message; diff --git a/lib/public/sabrepluginexception.php b/lib/public/sabrepluginexception.php index 2aa4c688802..5dba3b90a02 100644 --- a/lib/public/sabrepluginexception.php +++ b/lib/public/sabrepluginexception.php @@ -24,12 +24,16 @@ namespace OCP; use Sabre\DAV\Exception; +/** + * @since 8.2.0 + */ class SabrePluginException extends Exception { /** * Returns the HTTP statuscode for this exception * * @return int + * @since 8.2.0 */ public function getHTTPCode() { return $this->code; |