/**
  * @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();
 }
Example #2
0
 /**
  * @return bool
  */
 public function usesOriginalFile()
 {
     return $this->identifier == null || $this->identifier === $this->originalFile->getIdentifier();
 }
Example #3
0
 /**
  * Returns the identifier of the underlying original file
  *
  * @return string
  */
 public function getIdentifier()
 {
     return $this->originalFile->getIdentifier();
 }