Composer API
Class

Composer\DependencyResolver\Operation\InstallOperation

class InstallOperation extends SolverOperation

Solver install operation.

Methods

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

Initializes operation.

string getReason()

Returns operation reason.

from SolverOperation
PackageInterface getPackage()

Returns package instance.

string getJobType()

Returns job type.

string __toString()

Serializes the operation in a human readable format

Details

at line 32
public __construct(PackageInterface $package, string $reason = null)

Initializes operation.

Parameters

PackageInterface $package package instance
string $reason operation reason

in SolverOperation at line 42
public string getReason()

Returns operation reason.

Return Value

string

at line 44
public PackageInterface getPackage()

Returns package instance.

Return Value

PackageInterface

at line 54
public string getJobType()

Returns job type.

Return Value

string

at line 62
public string __toString()

Serializes the operation in a human readable format

Return Value

string