/** * Sets the resource pointer * * Deprecated – use setSha1() instead! * * @param \TYPO3\Flow\Resource\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(); }
/** * Returns the SHA1 of the ResourcePointer this Resource uses. * * @return string */ public function __toString() { return $this->resourcePointer->__toString(); }