/** * @return string[] * * @VirtualProperty() */ public function getChunks() { $result = array(); foreach ($this->chunkFile->getChunks() as $chunk) { $result[] = $chunk->getHash(); } return $result; }
/** * {@inheritdoc} */ public function setFile(ChunkFileInterface $file) { $this->fileHash = $file->getHash(); $this->mimetype = $file->getMimetype(); $this->size = $file->getSize(); $this->chunks = $file->getChunks(); }