PseudoFile
Use in `UploadedFileReferenceConverter` handling file uploads.
PseudoFile
and PseudoFileReference
are independent and not associated.
Table of Contents
Properties
- $nameFileInfo : SplFileInfo
- $payloadFileInfo : FileInfo
- $payloadFilePath : string
Methods
- __construct() : mixed
- see https://www.php.net/manual/en/features.file-upload.post-method.php
- getContents() : string
- getExtension() : string
- getMimeType() : string|null
- getName() : string
- getNameWithoutExtension() : string
- getSha1() : string
- getSize() : int|null
Properties
$nameFileInfo
protected
SplFileInfo
$nameFileInfo
$payloadFileInfo
protected
FileInfo
$payloadFileInfo
$payloadFilePath
protected
string
$payloadFilePath
Methods
__construct()
see https://www.php.net/manual/en/features.file-upload.post-method.php
public
__construct(array<string|int, mixed> $uploadInfo) : mixed
Parameters
- $uploadInfo : array<string|int, mixed>
-
as in $_FILES
Tags
getContents()
public
getContents() : string
Return values
stringgetExtension()
public
getExtension() : string
Return values
stringgetMimeType()
public
getMimeType() : string|null
Return values
string|nullgetName()
public
getName() : string
Return values
stringgetNameWithoutExtension()
public
getNameWithoutExtension() : string
Return values
stringgetSha1()
public
getSha1() : string
Return values
stringgetSize()
public
getSize() : int|null