PackageInterface
in
Package interface, all packages type should impelement it.
Table of Contents
Methods
- disable() : bool
- Disable package
- enable() : bool
- Enable package
- getDrivers() : array<string|int, mixed>
- Get drivers classes list
- getName() : string
- Return package name
- getProperties() : Collection
- Return package properties
- getRequire() : CollectionInterface
- Get require property
- getType() : string|null
- Get package type
- getVersion() : string
- Get Package version
- install() : mixed
- Install package
- isInstalled() : bool
- Return true if package is installed
- postInstall() : bool
- Run post install actions
- setPrimary() : bool
- Set package as primary
- unInstall() : bool
- Unintsll package
- validate() : bool
- Validate package properties
Methods
disable()
Disable package
public
disable() : bool
Return values
boolenable()
Enable package
public
enable() : bool
Return values
boolgetDrivers()
Get drivers classes list
public
getDrivers() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
Return package name
public
getName() : string
Return values
stringgetProperties()
Return package properties
public
getProperties([bool $full = false ]) : Collection
Parameters
- $full : bool = false
Return values
CollectiongetRequire()
Get require property
public
getRequire() : CollectionInterface
Return values
CollectionInterfacegetType()
Get package type
public
getType() : string|null
Return values
string|nullgetVersion()
Get Package version
public
getVersion() : string
Return values
stringinstall()
Install package
public
install([bool|null $primary = null ]) : mixed
Parameters
- $primary : bool|null = null
-
Primary package replaces routes or other params
isInstalled()
Return true if package is installed
public
isInstalled() : bool
Return values
boolpostInstall()
Run post install actions
public
postInstall() : bool
Return values
boolsetPrimary()
Set package as primary
public
setPrimary() : bool
Return values
boolunInstall()
Unintsll package
public
unInstall() : bool
Return values
boolvalidate()
Validate package properties
public
validate() : bool