From 7644950b48b094bfe5675348aefb7cf5747d325b Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 16 Apr 2015 17:00:08 +0200 Subject: 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 --- lib/public/search/result.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/public/search/result.php') diff --git a/lib/public/search/result.php b/lib/public/search/result.php index 5004e5679de..71c8b021a8e 100644 --- a/lib/public/search/result.php +++ b/lib/public/search/result.php @@ -26,6 +26,7 @@ namespace OCP\Search; /** * The generic result of a search + * @since 7.0.0 */ class Result { @@ -33,6 +34,7 @@ class Result { * A unique identifier for the result, usually given as the item ID in its * corresponding application. * @var string + * @since 7.0.0 */ public $id; @@ -40,12 +42,14 @@ class Result { * The name of the item returned; this will be displayed in the search * results. * @var string + * @since 7.0.0 */ public $name; /** * URL to the application item. * @var string + * @since 7.0.0 */ public $link; @@ -53,6 +57,7 @@ class Result { * The type of search result returned; for consistency, name this the same * as the class name (e.g. \OC\Search\File -> 'file') in lowercase. * @var string + * @since 7.0.0 */ public $type = 'generic'; @@ -61,6 +66,7 @@ class Result { * @param string $id unique identifier from application: '[app_name]/[item_identifier_in_app]' * @param string $name displayed text of result * @param string $link URL to the result within its app + * @since 7.0.0 */ public function __construct($id = null, $name = null, $link = null) { $this->id = $id; -- cgit v1.2.3