From e9132c446f1d6e68625ece74f1a3653c2bb3495e Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Sat, 20 Sep 2014 13:43:46 +1200 Subject: [PATCH] Add DocumentationEntity::toMap() for assert compability --- code/models/DocumentationEntity.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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