/**
  * {@inheritdoc}
  */
 public function setFile(ChunkFileInterface $file)
 {
     $this->fileHash = $file->getHash();
     $this->mimetype = $file->getMimetype();
     $this->size = $file->getSize();
     $this->chunks = $file->getChunks();
 }
Example #2
0
 /**
  * @return string
  *
  * @VirtualProperty()
  */
 public function getMimetype()
 {
     return $this->chunkFile->getMimetype();
 }