MissingRequiredPackageException
class MissingRequiredPackageException extends DependencyException (View source)
Package dependency failure: a package can't be installed since it requires another package that's not installed.
Properties
protected Package | $notInstallablePackage | The package that can't be installed. |
|
protected Package | $missingPackageHandle | The handle of the package that's not installed. |
|
protected string|string[]|bool | $requirements | The version requirements of the not installed package. |
Methods
__construct(Package $notInstallablePackage, string $missingPackageHandle, string|string[]|bool $requirements)
Initialize the instance.
getNotInstallablePackage()
Get the package that can't be installed.
getMissingPackageHandle()
Get the handle of the package that's not installed.
getRequirements()
Get the version requirements of the not installed package.
Details
__toString()
{@inheritdoc}
jsonSerialize()
{@inheritdoc}
__construct(Package $notInstallablePackage, string $missingPackageHandle, string|string[]|bool $requirements)
Initialize the instance.
Package
getNotInstallablePackage()
Get the package that can't be installed.
Package
getMissingPackageHandle()
Get the handle of the package that's not installed.
getRequirements()
Get the version requirements of the not installed package.