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

__toString()

{@inheritdoc}

jsonSerialize()

{@inheritdoc}

__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.

Parameters

Package $notInstallablePackage

the package that can't be installed

string $missingPackageHandle

the handle of the package that's not installed

string|string[]|bool $requirements

the version requirements of the package

Package getNotInstallablePackage()

Get the package that can't be installed.

Return Value

Package

Package getMissingPackageHandle()

Get the handle of the package that's not installed.

Return Value

Package

getRequirements()

Get the version requirements of the not installed package.