class ProductFileDownload extends DataModel

Properties

protected array $fields from DataModel
protected boolean $isEncrypted from DataModel
protected Identity $productId
protected DateTime $creationDate
protected integer $maxDays
protected integer $maxDownloads
protected string $path
protected string $previewPath
protected integer $sort
protected ProductFileDownloadI18n[] $i18ns

Methods

__construct()

Constructor

multitype:
getProperties()

Get the Model Properties

from Model
setOptions(stdClass $object = null, array $options = null)

Sets Properties with matching Array Values

from DataModel
stdClass
getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))

Convert the Model into stdClass Object

from DataModel
toJson()

No description

from Model
mixed:string
getFields()

Fields Getter

from DataModel
validate()

Object Validation

from DataModel
mixed:string|NULL
getField(boolean $toWawi = false, string $key)

Get a Model Member Name

from DataModel
map(boolean $toWawi = false, stdClass $obj = null)

Object Mapping

from DataModel
getModelType()

No description

from DataModel
boolean
isEncrypted()

Encrypted Status

from DataModel
setIdentity(string $propertyName, string|null $endpoint = null, int|null $host = null)

No description

from DataModel
setProperty($name, $value, $type)

No description

from DataModel
validateType($value, $type)

No description

from DataModel
setProductId(Identity $productId)

No description

getProductId()

No description

setCreationDate(DateTime $creationDate = null)

No description

getCreationDate()

No description

setMaxDays(integer $maxDays)

No description

integer
getMaxDays()

No description

setMaxDownloads(integer $maxDownloads)

No description

integer
getMaxDownloads()

No description

setPath(string $path)

No description

string
getPath()

No description

setPreviewPath(string $previewPath)

No description

string
getPreviewPath()

No description

setSort(integer $sort)

No description

integer
getSort()

No description

setI18ns(array $i18ns)

No description

getI18ns()

No description

clearI18ns()

No description

Details

at line 90
__construct()

Constructor

in Model at line 33
multitype: getProperties()

Get the Model Properties

Return Value

multitype: string

in DataModel at line 172
Model setOptions(stdClass $object = null, array $options = null)

Sets Properties with matching Array Values

Parameters

stdClass $object
array $options

Return Value

Model

in DataModel at line 70
stdClass getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))

Convert the Model into stdClass Object

Parameters

array $publics

Return Value

stdClass $object

in Model at line 115
toJson()

in DataModel at line 35
mixed:string getFields()

Fields Getter

Return Value

mixed:string

in DataModel at line 45
validate()

Object Validation

Exceptions

SchemaException

in DataModel at line 59
mixed:string|NULL getField(boolean $toWawi = false, string $key)

Get a Model Member Name

Parameters

boolean $toWawi
string $key

Return Value

mixed:string|NULL

in DataModel at line 81
map(boolean $toWawi = false, stdClass $obj = null)

Object Mapping

Parameters

boolean $toWawi
stdClass $obj Object to map

in DataModel at line 42
DataType getModelType()

Return Value

DataType

in DataModel at line 59
boolean isEncrypted()

Encrypted Status

Return Value

boolean

in DataModel at line 123
setIdentity(string $propertyName, string|null $endpoint = null, int|null $host = null)

Parameters

string $propertyName
string|null $endpoint
int|null $host

in DataModel at line 179
protected setProperty($name, $value, $type)

Parameters

$name
$value
$type

in DataModel at line 190
protected validateType($value, $type)

Parameters

$value
$type

at line 100
ProductFileDownload setProductId(Identity $productId)

Parameters

Identity $productId

Return Value

ProductFileDownload

Exceptions

InvalidArgumentException if the provided argument is not of type 'Identity'.

at line 108
Identity getProductId()

Return Value

Identity

at line 118
ProductFileDownload setCreationDate(DateTime $creationDate = null)

Parameters

DateTime $creationDate

Return Value

ProductFileDownload

Exceptions

InvalidArgumentException if the provided argument is not of type 'DateTime'.

at line 126
DateTime getCreationDate()

Return Value

DateTime

at line 135
ProductFileDownload setMaxDays(integer $maxDays)

Parameters

integer $maxDays

Return Value

ProductFileDownload

at line 143
integer getMaxDays()

Return Value

integer

at line 152
ProductFileDownload setMaxDownloads(integer $maxDownloads)

Parameters

integer $maxDownloads

Return Value

ProductFileDownload

at line 160
integer getMaxDownloads()

Return Value

integer

at line 169
ProductFileDownload setPath(string $path)

Parameters

string $path

Return Value

ProductFileDownload

at line 177
string getPath()

Return Value

string

at line 186
ProductFileDownload setPreviewPath(string $previewPath)

Parameters

string $previewPath

Return Value

ProductFileDownload

at line 194
string getPreviewPath()

Return Value

string

at line 203
ProductFileDownload setSort(integer $sort)

Parameters

integer $sort

Return Value

ProductFileDownload

at line 211
integer getSort()

Return Value

integer

at line 220
ProductFileDownload addI18n(ProductFileDownloadI18n $i18n)

Parameters

ProductFileDownloadI18n $i18n

Return Value

ProductFileDownload

at line 230
ProductFileDownload setI18ns(array $i18ns)

Parameters

array $i18ns

Return Value

ProductFileDownload

at line 239
ProductFileDownloadI18n[] getI18ns()

Return Value

ProductFileDownloadI18n[]

at line 247
ProductFileDownload clearI18ns()

Return Value

ProductFileDownload