class InstallOperation extends SolverOperation (View source)

Solver install operation.

Properties

protected $reason from SolverOperation
protected $package

Methods

__construct(PackageInterface $package, string $reason = null)

Initializes operation.

string
getReason()

Returns operation reason.

formatVersion(PackageInterface $package)

No description

getPackage()

Returns package instance.

string
getJobType()

Returns job type.

string
__toString()

Serializes the operation in a human readable format

Details

__construct(PackageInterface $package, string $reason = null)

Initializes operation.

Parameters

PackageInterface $package package instance
string $reason operation reason

string getReason()

Returns operation reason.

Return Value

string

protected formatVersion(PackageInterface $package)

Parameters

PackageInterface $package

PackageInterface getPackage()

Returns package instance.

Return Value

PackageInterface

string getJobType()

Returns job type.

Return Value

string

string __toString()

Serializes the operation in a human readable format

Return Value

string