class UpdateOperation extends SolverOperation (View source)

Solver update operation.

Properties

protected $reason from SolverOperation
protected $initialPackage
protected $targetPackage

Methods

__construct(PackageInterface $initial, PackageInterface $target, string $reason = null)

Initializes update operation.

string
getReason()

Returns operation reason.

formatVersion(PackageInterface $package)

No description

getInitialPackage()

Returns initial package.

getTargetPackage()

Returns target package.

string
getJobType()

Returns job type.

string
__toString()

Serializes the operation in a human readable format

Details

__construct(PackageInterface $initial, PackageInterface $target, string $reason = null)

Initializes update operation.

Parameters

PackageInterface $initial initial package
PackageInterface $target target package (updated)
string $reason operation reason

string getReason()

Returns operation reason.

Return Value

string

protected formatVersion(PackageInterface $package)

Parameters

PackageInterface $package

PackageInterface getInitialPackage()

Returns initial package.

Return Value

PackageInterface

PackageInterface getTargetPackage()

Returns target package.

Return Value

PackageInterface

string getJobType()

Returns job type.

Return Value

string

string __toString()

Serializes the operation in a human readable format

Return Value

string