Composer API
Class

Composer\DependencyResolver\Rule2Literals

class Rule2Literals extends 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 $literal1, int $literal2, int $reason, Link|PackageInterface $reasonData, array $job = null)

getLiterals()

getHash()

getJob()

from Rule
bool equals(Rule $rule)

Checks if this rule is equal to another one

getReason()

from Rule
getReasonData()

from Rule
getRequiredPackage()

from Rule
setType($type)

from Rule
getType()

from Rule
disable()

from Rule
enable()

from Rule
isDisabled()

from Rule
isEnabled()

from Rule
isAssertion()

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

from Rule
string __toString()

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

Details

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

Parameters

int $literal1
int $literal2
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 46
public getLiterals()

at line 51
public getHash()

in Rule at line 66
public getJob()

at line 66
public bool equals(Rule $rule)

Checks if this rule is equal to another one

Ignores whether either of the rules is disabled.

Parameters

Rule $rule The rule to check against

Return Value

bool Whether the rules are equal

in Rule at line 73
public getReason()

in Rule at line 78
public getReasonData()

in Rule at line 83
public getRequiredPackage()

in Rule at line 94
public setType($type)

Parameters

$type

in Rule at line 99
public getType()

in Rule at line 104
public disable()

in Rule at line 109
public enable()

in Rule at line 114
public isDisabled()

in Rule at line 119
public isEnabled()

at line 84
public isAssertion()

in Rule at line 126
public getPrettyString(Pool $pool, array $installedMap = array())

Parameters

Pool $pool
array $installedMap

at line 94
public string __toString()

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

Return Value

string