file = $file; $this->uploadSessionId = $uploadSessionId; $this->videoId = $videoId; $this->startOffset = $startOffset; $this->endOffset = $endOffset; } /** * Return the file entity. * * @return FacebookFile */ public function getFile() { return $this->file; } /** * Return a FacebookFile entity with partial content. * * @return FacebookFile */ public function getPartialFile() { $maxLength = $this->endOffset - $this->startOffset; return new FacebookFile($this->file->getFilePath(), $maxLength, $this->startOffset); } /** * Return upload session Id * * @return int */ public function getUploadSessionId() { return $this->uploadSessionId; } /** * Check whether is the last chunk * * @return bool */ public function isLastChunk() { return $this->startOffset === $this->endOffset; } /** * @return int */ public function getStartOffset() { return $this->startOffset; } /** * Get uploaded video Id * * @return int */ public function getVideoId() { return $this->videoId; } }