/** * Sets the resource pointer * * Deprecated – use setSha1() instead! * * @param ResourcePointer $resourcePointer * @return void * @deprecated Since version 3.0, use setSha1() to set the raw hash of the resourcePointer * @see setSha1() */ public function setResourcePointer(ResourcePointer $resourcePointer) { $this->throwExceptionIfProtected(); $this->sha1 = $resourcePointer->getHash(); }