interface PackageRegistryInterface

Package Registry Interface

Methods

array|false
getPackage(string $name)

Get package

bool
addPackage(string $name, array $data)

Add package

bool
removePackage(string $name)

Remove Package

array
getPackagesList(array $filter = [])

Get package list

bool
hasPackage(string $name)

Return true if package is installed

bool
setPackageStatus(string $name, integer|string $status)

Set package status

int|null
getPackageStatus(string $name)

Get package status

bool
setPrimary(string $name)

Set package as primary

bool|null
isPrimary(string $name)

Return true if package is primary.

Details

at line 23
array|false getPackage(string $name)

Get package

Parameters

string $name

Return Value

array|false

at line 32
bool addPackage(string $name, array $data)

Add package

Parameters

string $name
array $data

Return Value

bool

at line 40
bool removePackage(string $name)

Remove Package

Parameters

string $name

Return Value

bool

at line 48
array getPackagesList(array $filter = [])

Get package list

Parameters

array $filter

Return Value

array

at line 56
bool hasPackage(string $name)

Return true if package is installed

Parameters

string $name

Return Value

bool

at line 65
bool setPackageStatus(string $name, integer|string $status)

Set package status

Parameters

string $name
integer|string $status

Return Value

bool

at line 73
int|null getPackageStatus(string $name)

Get package status

Parameters

string $name

Return Value

int|null

at line 81
bool setPrimary(string $name)

Set package as primary

Parameters

string $name

Return Value

bool

at line 89
bool|null isPrimary(string $name)

Return true if package is primary.

Parameters

string $name

Return Value

bool|null