LocalPackage
API reference › Foxy › Native › LocalPackage
Represents a local file: package of the root manifest as the resolver selects it: a fixed version and the
requirements its own manifest declares.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$name readonly constructor | string | Package name, the source of its requirements. | LocalPackage |
$path readonly constructor | string | Local package directory: the manifest’s file: value without the prefix, as written. | LocalPackage |
$requirements readonly constructor | list<Requirement> | Dependencies, non-optional peers, and optional dependencies it declares. | LocalPackage |
$version readonly constructor | string | Version declared by its package.json (0.0.0 when absent). | LocalPackage |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Describes a local package selected by the native resolver. | LocalPackage |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $name, string $version, string $path, list<Foxy\Native\Requirement> $requirements)Describes a local package selected by the native resolver.
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string | Package name, the source of its requirements. |
$version | string | Version declared by its package.json (0.0.0 when absent). |
$path | string | Local package directory: the manifest’s file: value without the prefix, as written. |
$requirements | list<Requirement> | Dependencies, non-optional peers, and optional dependencies it declares. |