abstract class 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
protected $job
protected $reasonData

Methods

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

No description

getLiterals()

No description

getHash()

No description

getJob()

No description

equals(Rule $rule)

No description

getReason()

No description

getReasonData()

No description

getRequiredPackage()

No description

setType($type)

No description

getType()

No description

disable()

No description

enable()

No description

isDisabled()

No description

isEnabled()

No description

isAssertion()

No description

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

No description

string
formatPackagesUnique(Pool $pool, array $packages)

No description

Details

__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

abstract getLiterals()

abstract getHash()

getJob()

abstract equals(Rule $rule)

Parameters

Rule $rule

getReason()

getReasonData()

getRequiredPackage()

setType($type)

Parameters

$type

getType()

disable()

enable()

isDisabled()

isEnabled()

abstract 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