diff --git a/code/models/DocumentationEntity.php b/code/models/DocumentationEntity.php index 1607ea7..a511f3a 100755 --- a/code/models/DocumentationEntity.php +++ b/code/models/DocumentationEntity.php @@ -260,4 +260,17 @@ class DocumentationEntity extends ViewableData { public function compare(DocumentationEntity $other) { return version_compare($this->getVersion(), $other->getVersion()); } + + /** + * @return array + */ + public function toMap() { + return array( + 'Key' => $this->key, + 'Path' => $this->getPath(), + 'Version' => $this->getVersion(), + 'IsStable' => $this->getIsStable(), + 'Language' => $this->getLanguage() + ); + } } \ No newline at end of file