File
Illuminate\Http\Testing\File
class src/Illuminate/Http/Testing/File.php
__construct
v11.0.0 以前から
__construct($name, $tempFile)
@param string $name
@param resource $tempFile
-
v11.0.0
追加
- 変更後
__construct($name, $tempFile) [@param string $name, @param resource $tempFile, @return void]
-
v12.4.0
シグネチャ変更
- 変更前
__construct($name, $tempFile) [@param string $name, @param resource $tempFile, @return void]- 変更後
__construct($name, $tempFile) [@param string $name, @param resource $tempFile]
create
v11.0.0 以前から
static
static create($name, $kilobytes = 0)
@param string $name
@param string|int $kilobytes
@return \Illuminate\Http\Testing\File
-
v11.0.0
追加
- 変更後
static create($name, $kilobytes = 0) [@param string $name, @param string|int $kilobytes, @return \Illuminate\Http\Testing\File]
createWithContent
v11.0.0 以前から
static
static createWithContent($name, $content)
@param string $name
@param string $content
@return \Illuminate\Http\Testing\File
-
v11.0.0
追加
- 変更後
static createWithContent($name, $content) [@param string $name, @param string $content, @return \Illuminate\Http\Testing\File]
getMimeType
v11.0.0 以前から
getMimeType(): string
@return string
-
v11.0.0
追加
- 変更後
getMimeType(): string [@return string]
getSize
v11.0.0 以前から
getSize(): int
@return int
-
v11.0.0
追加
- 変更後
getSize(): int [@return int]
image
v11.0.0 以前から
static
static image($name, $width = 10, $height = 10)
@param string $name
@param int $width
@param int $height
@return \Illuminate\Http\Testing\File
-
v11.0.0
追加
- 変更後
static image($name, $width = 10, $height = 10) [@param string $name, @param int $width, @param int $height, @return \Illuminate\Http\Testing\File]
mimeType
v11.0.0 以前から
mimeType($mimeType)
@param string $mimeType
@return $this
-
v11.0.0
追加
- 変更後
mimeType($mimeType) [@param string $mimeType, @return $this]
size
v11.0.0 以前から
size($kilobytes)
@param int $kilobytes
@return $this
-
v11.0.0
追加
- 変更後
size($kilobytes) [@param int $kilobytes, @return $this]