class IncompatiblePackagesException extends DependencyException (View source)

Package dependency failure: a package doesn't want another package.

Properties

protected Package $blockingPackage

The package that doesn't want the other package.

protected Package $incompatiblePackage

The incompatible package.

Methods

__toString()

{@inheritdoc}

jsonSerialize()

{@inheritdoc}

__construct(Package $blockingPackage, Package $incompatiblePackage)

Initialize the instance.

getBlockingPackage()

Get the package that can't be uninstalled.

getIncompatiblePackage()

Get the incompatible package.

Details

__toString()

{@inheritdoc}

See also

\LogicException::__toString()

jsonSerialize()

{@inheritdoc}

See also

\JsonSerializable::jsonSerialize()

__construct(Package $blockingPackage, Package $incompatiblePackage)

Initialize the instance.

Parameters

Package $blockingPackage

the package that doesn't want the other package

Package $incompatiblePackage

the incompatible package

Package getBlockingPackage()

Get the package that can't be uninstalled.

Return Value

Package

Package getIncompatiblePackage()

Get the incompatible package.

Return Value

Package