1 | <?php |
||
21 | class UploadedFile implements UploadedFileInterface |
||
22 | { |
||
23 | /** @var string The name */ |
||
24 | private $name; |
||
25 | |||
26 | /** @var string The type. */ |
||
27 | private $type; |
||
28 | |||
29 | /** @var string The tmp name. */ |
||
30 | private $tmpName; |
||
31 | |||
32 | /** @var int The error. */ |
||
33 | private $error; |
||
34 | |||
35 | /** @var int The size. */ |
||
36 | private $size; |
||
37 | |||
38 | /** |
||
39 | * Construct a Stream object with the given name, type, tmp name, error and size. |
||
40 | * |
||
41 | * @param string $name |
||
42 | * @param string $type |
||
43 | * @param string $tmpName |
||
44 | * @param int $error |
||
45 | * @param int $size |
||
46 | */ |
||
47 | 24 | public function __construct($name, $type, $tmpName, $error, $size) |
|
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | 1 | public function getStream() |
|
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | 3 | public function moveTo($targetPath) |
|
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | 1 | public function getSize() |
|
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | 4 | public function getError() |
|
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | 1 | public function getClientFilename() |
|
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | 1 | public function getClientMediaType() |
|
105 | } |
||
106 |