abstract class Asset (View source)

Properties

protected string $id
protected bool $isLoadedOnRequest
protected string $package
protected string|null $path

Methods

__construct(string $id, string|null $path = null)

No description

static Asset
make(string $id, string|null $path = null)

No description

loadedOnRequest(bool $condition = true)

No description

string
getId()

No description

package(string $package)

No description

string
getPackage()

No description

string
getPath()

No description

bool
isRemote()

No description

string
getVersion()

No description

bool
isLoadedOnRequest()

No description

string
getPublicPath()

No description

Details

final __construct(string $id, string|null $path = null)

No description

Parameters

string $id
string|null $path

static Asset make(string $id, string|null $path = null)

No description

Parameters

string $id
string|null $path

Return Value

Asset

Asset loadedOnRequest(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Asset

string getId()

No description

Return Value

string

Asset package(string $package)

No description

Parameters

string $package

Return Value

Asset

string getPackage()

No description

Return Value

string

string getPath()

No description

Return Value

string

bool isRemote()

No description

Return Value

bool

string getVersion()

No description

Return Value

string

bool isLoadedOnRequest()

No description

Return Value

bool

abstract string getPublicPath()

No description

Return Value

string