Skip to content

SizeAware


  • Full name: \Qubus\Validation\Rules\Traits\SizeAware

Methods

getValueSize

Get size (int) value from given $value

protected getValueSize(mixed $value): float|false

Parameters:

Parameter Type Description
$value mixed

getBytesSize

Given $size and get the bytes

protected getBytesSize(mixed $size): float

Parameters:

Parameter Type Description
$size mixed

Throws:


isUploadedFileValue

Check whether value is from $_FILES

public isUploadedFileValue(mixed $value): bool

Parameters:

Parameter Type Description
$value mixed