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
  1. v11.0.0 追加
    変更後
    __construct($name, $tempFile) [@param string $name, @param resource $tempFile, @return void]
  2. 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
  1. 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
  1. 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
  1. v11.0.0 追加
    変更後
    getMimeType(): string [@return string]

getSize

v11.0.0 以前から

getSize(): int
@return int
  1. 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
  1. 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
  1. v11.0.0 追加
    変更後
    mimeType($mimeType) [@param string $mimeType, @return $this]

size

v11.0.0 以前から

size($kilobytes)
@param int $kilobytes
@return $this
  1. v11.0.0 追加
    変更後
    size($kilobytes) [@param int $kilobytes, @return $this]