Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/issuetemplate.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-02-08 19:58:48 +0300
committerJulius Härtl <jus@bitgrid.net>2018-08-15 18:39:15 +0300
commitc71357519020f49837047f575aa926b4c3e14aa8 (patch)
treee608acf6b50257b792e895a575a1fd032ed8d129 /lib/Section.php
parented5f61d7149c9a0cbcdbbe3e6c37e4ceea4fb433 (diff)
Add section endpoint
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/Section.php')
-rw-r--r--lib/Section.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Section.php b/lib/Section.php
index 05ffeee..4590c99 100644
--- a/lib/Section.php
+++ b/lib/Section.php
@@ -23,7 +23,7 @@
namespace OCA\IssueTemplate;
-class Section implements ISection {
+class Section implements ISection, \JsonSerializable {
/** @var string */
private $identifier;
@@ -77,4 +77,10 @@ class Section implements ISection {
return $detail;
}
+ public function jsonSerialize() {
+ return [
+ 'identifier' => $this->getIdentifier(),
+ 'title' => $this->getTitle(),
+ ];
+ }
} \ No newline at end of file