public function setResourcePointer(ResourcePointer $resourcePointer) { $this->throwExceptionIfProtected(); $this->sha1 = $resourcePointer->getHash(); }