Composer API
Class

Composer\DependencyResolver\Operation\UpdateOperation

class UpdateOperation extends SolverOperation

Solver update operation.

Methods

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

Initializes update operation.

string getReason()

Returns operation reason.

from SolverOperation
PackageInterface getInitialPackage()

Returns initial package.

PackageInterface getTargetPackage()

Returns target package.

string getJobType()

Returns job type.

string __toString()

Serializes the operation in a human readable format

Details

at line 34
public __construct(PackageInterface $initial, PackageInterface $target, string $reason = null)

Initializes update operation.

Parameters

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

in SolverOperation at line 41
public string getReason()

Returns operation reason.

Return Value

string

at line 47
public PackageInterface getInitialPackage()

Returns initial package.

Return Value

PackageInterface

at line 57
public PackageInterface getTargetPackage()

Returns target package.

Return Value

PackageInterface

at line 67
public string getJobType()

Returns job type.

Return Value

string

at line 75
public string __toString()

Serializes the operation in a human readable format

Return Value

string