Add DocumentationEntity::toMap() for assert compability

This commit is contained in:
Will Rossiter 2014-09-20 13:43:46 +12:00
parent aed63c9df5
commit e9132c446f

View File

@ -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()
);
}
}