FileData implements IErrorable
Table of Contents
Interfaces
Methods
- __construct() : mixed
- getAttachedObject() : AttachedObject
- getErrorByCode() : array<string|int, Error>
- Getting once error with the necessary code.
- getErrors() : array<string|int, Error>
- Getting array of errors.
- getErrorsByCode() : array<string|int, Error>
- Getting array of errors with the necessary code.
- getFile() : File|null
- getId() : string
- getLinkInService() : string
- getMetaData() : array<string|int, mixed>
- getMimeType() : string
- getName() : string
- getSize() : int
- getSrc() : string|null
- getVersion() : Version|null
- isNeededToConvert() : bool
- setAttachedObject() : $this
- setFile() : $this
- setId() : $this
- setLinkInService() : $this
- setMetaData() : $this
- setMimeType() : $this
- setName() : $this
- setNeedConvert() : $this
- setSize() : $this
- setSrc() : $this
- setVersion() : $this
- toArray() : mixed
Methods
__construct()
public
__construct() : mixed
getAttachedObject()
public
getAttachedObject() : AttachedObject
Return values
AttachedObjectgetErrorByCode()
Getting once error with the necessary code.
public
getErrorByCode(mixed $code) : array<string|int, Error>
Parameters
- $code : mixed
-
Code of error.
Tags
Return values
array<string|int, Error>getErrors()
Getting array of errors.
public
getErrors() : array<string|int, Error>
Return values
array<string|int, Error>getErrorsByCode()
Getting array of errors with the necessary code.
public
getErrorsByCode(mixed $code) : array<string|int, Error>
Parameters
- $code : mixed
-
Code of error.
Tags
Return values
array<string|int, Error>getFile()
public
getFile() : File|null
Return values
File|nullgetId()
public
getId() : string
Return values
stringgetLinkInService()
public
getLinkInService() : string
Return values
stringgetMetaData()
public
getMetaData() : array<string|int, mixed>
Return values
array<string|int, mixed>getMimeType()
public
getMimeType() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetSize()
public
getSize() : int
Return values
intgetSrc()
public
getSrc([bool $getFromFileIfPossible = true ]) : string|null
Parameters
- $getFromFileIfPossible : bool = true
Return values
string|nullgetVersion()
public
getVersion() : Version|null
Return values
Version|nullisNeededToConvert()
public
isNeededToConvert() : bool
Return values
boolsetAttachedObject()
public
setAttachedObject(AttachedObject $attachedObject) : $this
Parameters
- $attachedObject : AttachedObject
Return values
$thissetFile()
public
setFile(File|null $file) : $this
Parameters
- $file : File|null
Return values
$thissetId()
public
setId(string $id) : $this
Parameters
- $id : string
Return values
$thissetLinkInService()
public
setLinkInService(string $linkInService) : $this
Parameters
- $linkInService : string
Return values
$thissetMetaData()
public
setMetaData(array<string|int, mixed> $metaData) : $this
Parameters
- $metaData : array<string|int, mixed>
Return values
$thissetMimeType()
public
setMimeType(string $mimeType) : $this
Parameters
- $mimeType : string
Return values
$thissetName()
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetNeedConvert()
public
setNeedConvert(bool $needConvert) : $this
Parameters
- $needConvert : bool
Return values
$thissetSize()
public
setSize(int $size) : $this
Parameters
- $size : int
Return values
$thissetSrc()
public
setSrc(string $src) : $this
Parameters
- $src : string
Return values
$thissetVersion()
public
setVersion(Version|null $version) : $this
Parameters
- $version : Version|null
Return values
$thistoArray()
public
toArray() : mixed