/** * @return void */ public function setUsesOriginalFile() { // TODO check if some of these properties can/should be set in a generic update method $this->identifier = $this->originalFile->getIdentifier(); $this->updated = TRUE; $this->originalFileSha1 = $this->originalFile->getSha1(); }
/** * @return bool */ public function usesOriginalFile() { return $this->identifier == null || $this->identifier === $this->originalFile->getIdentifier(); }
/** * Returns the identifier of the underlying original file * * @return string */ public function getIdentifier() { return $this->originalFile->getIdentifier(); }