class GenericImage extends GenericFile

Properties

protected string $url

The file URL.

from  GenericFile
protected int $id

The image ID.

Methods

__construct(int $id, string $url)

Create a new instance.

string
getUrl()

Get the file URL.

int
getId()

Get the image ID.

Details

at line 22
__construct(int $id, string $url)

Create a new instance.

Parameters

int $id
string $url

in GenericFile at line 28
string getUrl()

Get the file URL.

This may be a remote URL starting with "http://" or "https://", or a storage disk path starting with "[disk-name]://".

Return Value

string

at line 32
int getId()

Get the image ID.

Return Value

int