Composer API
Class

Composer\DependencyResolver\Rule

abstract class Rule

Constants

RULE_INTERNAL_ALLOW_UPDATE

RULE_JOB_INSTALL

RULE_JOB_REMOVE

RULE_PACKAGE_CONFLICT

RULE_PACKAGE_REQUIRES

RULE_PACKAGE_OBSOLETES

RULE_INSTALLED_PACKAGE_OBSOLETES

RULE_PACKAGE_SAME_NAME

RULE_PACKAGE_IMPLICIT_OBSOLETES

RULE_LEARNED

RULE_PACKAGE_ALIAS

BITFIELD_TYPE

BITFIELD_REASON

BITFIELD_DISABLED

Methods

__construct(int $reason, Link|PackageInterface $reasonData, array $job = null)

getLiterals()

getHash()

getJob()

equals(Rule $rule)

getReason()

getReasonData()

getRequiredPackage()

setType($type)

getType()

disable()

enable()

isDisabled()

isEnabled()

isAssertion()

getPrettyString(Pool $pool, array $installedMap = array())

Details

at line 51
public __construct(int $reason, Link|PackageInterface $reasonData, array $job = null)

Parameters

int $reason A RULE_* constant describing the reason for generating this rule
Link|PackageInterface $reasonData
array $job The job this rule was created from

at line 64
abstract public getLiterals()

at line 66
abstract public getHash()

at line 68
public getJob()

at line 73
abstract public equals(Rule $rule)

Parameters

Rule $rule

at line 75
public getReason()

at line 80
public getReasonData()

at line 85
public getRequiredPackage()

at line 96
public setType($type)

Parameters

$type

at line 101
public getType()

at line 106
public disable()

at line 111
public enable()

at line 116
public isDisabled()

at line 121
public isEnabled()

at line 126
abstract public isAssertion()

at line 128
public getPrettyString(Pool $pool, array $installedMap = array())

Parameters

Pool $pool
array $installedMap