ImageValue
class ImageValue extends Value (View source)
Properties
protected string | $variable | The name of the LESS variable. |
from Value |
protected string | $imageUrl | The URL of the image. |
|
protected int|null | $fID | The ID of the associated File instance. |
Methods
string
toStyleString()
Get the CSS representation of this value.
array
toLessVariablesArray()
Get the LESS representation of this variable and associated values.
$this
setUrl(string $url)
Set the URL of the image.
string
getUrl()
Get the URL of the image.
$this
setFileID(int|null $fID)
Set the ID of the associated File instance.
int|null
getFileID()
Get the ID of the associated File instance.
Details
in
Value at line 19
__construct(string $variable = '')
Initialize the instance.
in
Value at line 29
string
getVariable()
Get the name of the LESS variable.
string
toStyleString()
Get the CSS representation of this value.
array
toLessVariablesArray()
Get the LESS representation of this variable and associated values.
$this
setUrl(string $url)
Set the URL of the image.
string
getUrl()
Get the URL of the image.
$this
setFileID(int|null $fID)
Set the ID of the associated File instance.
int|null
getFileID()
Get the ID of the associated File instance.