diff --git a/src/File.php b/src/File.php new file mode 100644 index 00000000..61e14cc8 --- /dev/null +++ b/src/File.php @@ -0,0 +1,59 @@ +filename = $filename; + $this->contentType = $contentType; + $this->stream = $stream; + } + + /** + * @return string + */ + public function getFilename() + { + return $this->filename; + } + + /** + * @return string + */ + public function getContentType() + { + return $this->contentType; + } + + /** + * @return ReadableStreamInterface + */ + public function getStream() + { + return $this->stream; + } +} diff --git a/src/FileInterface.php b/src/FileInterface.php new file mode 100644 index 00000000..227b8feb --- /dev/null +++ b/src/FileInterface.php @@ -0,0 +1,23 @@ +assertEquals($filename, $file->getFilename()); + $this->assertEquals($type, $file->getContentType()); + $this->assertEquals($stream, $file->getStream()); + } +}