ProviderPackage
API reference › Scaffold › Config › ProviderPackage
Represents an installed provider package as the scaffold core sees it, independent of Composer’s package classes.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$extra readonly constructor | mixed[]| | extra section of the package, or null to read it from the composer.json at $installPath. Default: null. | ProviderPackage |
$installPath readonly constructor | string| | Absolute install path, or null for a package without files, such as a metapackage. | ProviderPackage |
$name readonly constructor | string | Composer package name. | ProviderPackage |
$prettyVersion readonly constructor | string | Installed version recorded in scaffold-lock.json. | ProviderPackage |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates an installed provider descriptor. | ProviderPackage |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $name, string $prettyVersion, string|null $installPath, mixed[]|null $extra = null)Creates an installed provider descriptor.
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string | Composer package name. |
$prettyVersion | string | Installed version recorded in scaffold-lock.json. |
$installPath | string| | Absolute install path, or null for a package without files, such as a metapackage. |
$extra | mixed[]| | extra section of the package, or null to read it from the composer.json at $installPath. |