diff --git a/src/UploadedFile.php b/src/UploadedFile.php new file mode 100644 index 00000000..9e26267d --- /dev/null +++ b/src/UploadedFile.php @@ -0,0 +1,62 @@ +filename = $filename; + $this->contentType = $contentType; + $this->stream = $stream; + } + + /** + * @return string + */ + public function getClientFilename() + { + return $this->filename; + } + + /** + * @return string + */ + public function getClientMediaType() + { + return $this->contentType; + } + + /** + * @return ReadableStreamInterface + */ + public function getStream() + { + return $this->stream; + } +} diff --git a/src/UploadedFileInterface.php b/src/UploadedFileInterface.php new file mode 100644 index 00000000..4576eb1c --- /dev/null +++ b/src/UploadedFileInterface.php @@ -0,0 +1,23 @@ +assertEquals($filename, $file->getClientFilename()); + $this->assertEquals($type, $file->getClientMediaType()); + $this->assertEquals($stream, $file->getStream()); + } +}