File
implements
Item
Table of Contents
Interfaces
- Item
Properties
-
$content
: FileContent
-
$dir
: string
-
$id
: int|null
-
$isImage
: bool|null
-
$name
: string
-
$size
: int|null
-
$type
: string|null
Methods
-
__construct()
: mixed
-
createByLegacyFile()
: static
-
getPath()
: string
$content
public
FileContent
$content
$dir
public
string
$dir
= ''
$id
public
int|null
$id
= null
$isImage
public
bool|null
$isImage
$name
public
string
$name
$size
public
int|null
$size
= 0
$type
public
string|null
$type
= null
__construct()
public
__construct(string $name[, string $dir = '' ][, string|null $type = null ][, int|null $id = null ][, FileContent|null $content = null ][, bool|null $isImage = null ]) : mixed
Parameters
-
$name
: string
-
-
$dir
: string
= ''
-
-
$type
: string|null
= null
-
-
$id
: int|null
= null
-
-
$content
: FileContent|null
= null
-
-
$isImage
: bool|null
= null
-
createByLegacyFile()
public
static createByLegacyFile(File $file) : static
Parameters
-
$file
: File
-
getPath()
public
getPath() : string