Constants

RULE_INTERNAL_ALLOW_UPDATE

RULE_INTERNAL_ALLOW_UPDATE = 1

RULE_JOB_INSTALL

RULE_JOB_INSTALL = 2

RULE_JOB_REMOVE

RULE_JOB_REMOVE = 3

RULE_PACKAGE_CONFLICT

RULE_PACKAGE_CONFLICT = 6

RULE_PACKAGE_REQUIRES

RULE_PACKAGE_REQUIRES = 7

RULE_PACKAGE_OBSOLETES

RULE_PACKAGE_OBSOLETES = 8

RULE_INSTALLED_PACKAGE_OBSOLETES

RULE_INSTALLED_PACKAGE_OBSOLETES = 9

RULE_PACKAGE_SAME_NAME

RULE_PACKAGE_SAME_NAME = 10

RULE_PACKAGE_IMPLICIT_OBSOLETES

RULE_PACKAGE_IMPLICIT_OBSOLETES = 11

RULE_LEARNED

RULE_LEARNED = 12

RULE_PACKAGE_ALIAS

RULE_PACKAGE_ALIAS = 13

BITFIELD_TYPE

BITFIELD_TYPE = 0

BITFIELD_REASON

BITFIELD_REASON = 8

BITFIELD_DISABLED

BITFIELD_DISABLED = 16

Properties

$bitfield

$bitfield : 

Type

$job

$job : 

Type

$reasonData

$reasonData : 

Type

$literal1

$literal1 : 

Type

$literal2

$literal2 : 

Type

Methods

__construct()

__construct(integer  $literal1, integer  $literal2, integer  $reason, \Composer\Package\Link|\Composer\Package\PackageInterface  $reasonData, array  $job = null) 

Parameters

integer $literal1
integer $literal2
integer $reason

A RULE_* constant describing the reason for generating this rule

\Composer\Package\Link|\Composer\Package\PackageInterface $reasonData
array $job

The job this rule was created from

getLiterals()

getLiterals() 

getHash()

getHash() 

getJob()

getJob() 

equals()

equals(\Composer\DependencyResolver\Rule  $rule) : boolean

Checks if this rule is equal to another one

Ignores whether either of the rules is disabled.

Parameters

\Composer\DependencyResolver\Rule $rule

The rule to check against

Returns

boolean —

Whether the rules are equal

getReason()

getReason() 

getReasonData()

getReasonData() 

getRequiredPackage()

getRequiredPackage() 

setType()

setType(  $type) 

Parameters

$type

getType()

getType() 

disable()

disable() 

enable()

enable() 

isDisabled()

isDisabled() 

isEnabled()

isEnabled() 

isAssertion()

isAssertion() 

getPrettyString()

getPrettyString(\Composer\DependencyResolver\Pool  $pool, array  $installedMap = array()) 

Parameters

\Composer\DependencyResolver\Pool $pool
array $installedMap

__toString()

__toString() : string

Formats a rule as a string of the format (Literal1|Literal2|.

..)

Returns

string

formatPackagesUnique()

formatPackagesUnique(\Composer\DependencyResolver\Pool  $pool, array  $packages) : string

Parameters

\Composer\DependencyResolver\Pool $pool
array $packages

Returns

string