Skip to content

Commit

Permalink
Merge pull request zendframework#137 from settermjd/add-uploadedfile-…
Browse files Browse the repository at this point in the history
…constructor-documentation

Add constructor doc bloc for UploadedFile
  • Loading branch information
weierophinney committed Mar 17, 2016
2 parents 2754bf0 + 319c50e commit 1ebb688
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/UploadedFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ class UploadedFile implements UploadedFileInterface
*/
private $stream;

/**
* @param string|resource $streamOrFile
* @param int $size
* @param int $errorStatus
* @param string $clientFilename
* @param string $clientMediaType
* @throws InvalidArgumentException
*/
public function __construct($streamOrFile, $size, $errorStatus, $clientFilename = null, $clientMediaType = null)
{
if ($errorStatus === UPLOAD_ERR_OK) {
Expand Down

0 comments on commit 1ebb688

Please sign in to comment.