class GenericRule extends Rule (View source)

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

Properties

protected $bitfield from Rule
protected $job from Rule
protected $reasonData from Rule
protected $literals

Methods

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

No description

getLiterals()

No description

getHash()

No description

getJob()

No description

from Rule
equals(Rule $rule)

Checks if this rule is equal to another one

getReason()

No description

from Rule
getReasonData()

No description

from Rule
getRequiredPackage()

No description

from Rule
setType($type)

No description

from Rule
getType()

No description

from Rule
disable()

No description

from Rule
enable()

No description

from Rule
isDisabled()

No description

from Rule
isEnabled()

No description

from Rule
isAssertion()

No description

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

No description

from Rule
string
formatPackagesUnique(Pool $pool, array $packages)

No description

from Rule
string
__toString()

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

Details

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

Parameters

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

getLiterals()

getHash()

getJob()

equals(Rule $rule)

Checks if this rule is equal to another one

Ignores whether either of the rules is disabled.

Parameters

Rule $rule

getReason()

getReasonData()

getRequiredPackage()

setType($type)

Parameters

$type

getType()

disable()

enable()

isDisabled()

isEnabled()

isAssertion()

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

Parameters

Pool $pool
array $installedMap

protected string formatPackagesUnique(Pool $pool, array $packages)

Parameters

Pool $pool
array $packages

Return Value

string

string __toString()

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

..)

Return Value

string