contents = FileUtils::getContents( $sourcePath ); $this->setReceived(); } public function getContents() { if ( $this->contents === null ) { throw new ShellboxError( __METHOD__ . ' was called too early or ' . 'on a non-existent file' ); } return $this->contents; } public function readFromMultipart( MultipartReader $multipartReader ) { $this->contents = $multipartReader->readPartAsString(); $this->setReceived(); } }