Table of Contents
Properties
-
$content
: string
-
$contentType
: string|null
-
$fileName
: string
-
$filePath
: string
Methods
-
__construct()
: mixed
-
getContent()
: string
-
getContentType()
: string|null
-
getFileName()
: string
-
getFilePath()
: string
-
loadFile()
: $this
-
setContent()
: $this
-
setContentType()
: $this
-
setFileName()
: $this
-
setFilePath()
: $this
$content
private
string
$content
= ''
$contentType
private
string|null
$contentType
= null
$fileName
private
string
$fileName
= ''
$filePath
private
string
$filePath
= ''
__construct()
public
__construct([string $fileName = '' ][, string $filePath = '' ][, string|null $contentType = null ]) : mixed
Parameters
-
$fileName
: string
= ''
-
-
$filePath
: string
= ''
-
-
$contentType
: string|null
= null
-
getContent()
public
getContent() : string
getContentType()
public
getContentType() : string|null
Return values
string|null
getFileName()
public
getFileName() : string
getFilePath()
public
getFilePath() : string
loadFile()
public
loadFile(string $filePath) : $this
Parameters
-
$filePath
: string
-
setContent()
public
setContent(string $content) : $this
Parameters
-
$content
: string
-
setContentType()
public
setContentType(string|null $contentType) : $this
Parameters
-
$contentType
: string|null
-
setFileName()
public
setFileName(string $fileName) : $this
Parameters
-
$fileName
: string
-
setFilePath()
public
setFilePath(string $filePath) : $this
Parameters
-
$filePath
: string
-