class AudioAsset implements Asset

Audio asset.

Properties

$duration

Duration in seconds

Methods

__construct(string $url, string|null $mimeType = null, string|null $file = null, float|null $duration = null)

No description

string
__toString()

Allows direct echoing of the object to get the URL.

Details

at line 19
__construct(string $url, string|null $mimeType = null, string|null $file = null, float|null $duration = null)

No description

Parameters

string $url
string|null $mimeType
string|null $file
float|null $duration

at line 31
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.