class GenericAsset implements Asset

Generic asset for any general file type.

Properties

$mimeType

Methods

__construct(string $url, string|null $mimeType = null, string|null $file = null, string|null $media = null, string|null $integrity = null)

No description

string
__toString()

Allows direct echoing of the object to get the URL.

Details

at line 18
__construct(string $url, string|null $mimeType = null, string|null $file = null, string|null $media = null, string|null $integrity = null)

No description

Parameters

string $url
string|null $mimeType
string|null $file
string|null $media
string|null $integrity

at line 29
string __toString()

Allows direct echoing of the object to get the URL.

Return Value

string

Traits

Lazy-loading of properties as a workaround for PHP < 8.4.