Added getRevision() helper function, refactored revision constant
This commit is contained in:
@@ -157,6 +157,13 @@ class CloudObject {
|
||||
}
|
||||
|
||||
return $this->retriever->getObjectNode($coid);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the revision of the object.
|
||||
*/
|
||||
public function getRevision() : string {
|
||||
return $this->getString(Constants::PROPERTY_REVISION);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user