return JSON::encode($returnValues);
}
+ /**
+ * Returns a reaction type by id.
+ *
+ * @param integer $reactionID
+ * @return ReactionType|null
+ */
+ public function getReactionTypeByID($reactionID) {
+ return ReactionTypeCache::getInstance()->getReactionTypeByID($reactionID);
+ }
+
/**
* Builds the data attributes for the object container.
*
/**
* Returns an object type from cache.
*
- * @param string $objectName
- * @return ObjectType
+ * @param string $objectName
+ * @return ObjectType|null
*/
public function getObjectType($objectName) {
if (isset($this->cache[$objectName])) {