Documentation

Rule2Literals extends Rule
in package

Tags
author

Nils Adermann naderman@naderman.de

Table of Contents

BITFIELD_DISABLED  = 16
BITFIELD_REASON  = 8
BITFIELD_TYPE  = 0
RULE_INSTALLED_PACKAGE_OBSOLETES  = 9
RULE_INTERNAL_ALLOW_UPDATE  = 1
RULE_JOB_INSTALL  = 2
RULE_JOB_REMOVE  = 3
RULE_LEARNED  = 12
RULE_PACKAGE_ALIAS  = 13
RULE_PACKAGE_CONFLICT  = 6
RULE_PACKAGE_IMPLICIT_OBSOLETES  = 11
RULE_PACKAGE_OBSOLETES  = 8
RULE_PACKAGE_REQUIRES  = 7
RULE_PACKAGE_SAME_NAME  = 10
$bitfield  : mixed
$job  : mixed
$literal1  : mixed
$literal2  : mixed
$reasonData  : mixed
__construct()  : mixed
__toString()  : string
Formats a rule as a string of the format (Literal1|Literal2|...)
disable()  : mixed
enable()  : mixed
equals()  : bool
Checks if this rule is equal to another one
getHash()  : mixed
getJob()  : mixed
getLiterals()  : mixed
getPrettyString()  : mixed
getReason()  : mixed
getReasonData()  : mixed
getRequiredPackage()  : mixed
getType()  : mixed
isAssertion()  : mixed
isDisabled()  : mixed
isEnabled()  : mixed
setType()  : mixed
formatPackagesUnique()  : string

Constants

BITFIELD_DISABLED

public mixed BITFIELD_DISABLED = 16

BITFIELD_REASON

public mixed BITFIELD_REASON = 8

BITFIELD_TYPE

public mixed BITFIELD_TYPE = 0

RULE_INSTALLED_PACKAGE_OBSOLETES

public mixed RULE_INSTALLED_PACKAGE_OBSOLETES = 9

RULE_INTERNAL_ALLOW_UPDATE

public mixed RULE_INTERNAL_ALLOW_UPDATE = 1

RULE_JOB_INSTALL

public mixed RULE_JOB_INSTALL = 2

RULE_JOB_REMOVE

public mixed RULE_JOB_REMOVE = 3

RULE_LEARNED

public mixed RULE_LEARNED = 12

RULE_PACKAGE_ALIAS

public mixed RULE_PACKAGE_ALIAS = 13

RULE_PACKAGE_CONFLICT

public mixed RULE_PACKAGE_CONFLICT = 6

RULE_PACKAGE_IMPLICIT_OBSOLETES

public mixed RULE_PACKAGE_IMPLICIT_OBSOLETES = 11

RULE_PACKAGE_OBSOLETES

public mixed RULE_PACKAGE_OBSOLETES = 8

RULE_PACKAGE_REQUIRES

public mixed RULE_PACKAGE_REQUIRES = 7

RULE_PACKAGE_SAME_NAME

public mixed RULE_PACKAGE_SAME_NAME = 10

Properties

$bitfield

protected mixed $bitfield

$job

protected mixed $job

$reasonData

protected mixed $reasonData

Methods

__construct()

public __construct(int $literal1, int $literal2, int $reason, Link|PackageInterface $reasonData[, array<string|int, mixed> $job = null ]) : mixed
Parameters
$literal1 : int
$literal2 : int
$reason : int

A RULE_* constant describing the reason for generating this rule

$reasonData : Link|PackageInterface
$job : array<string|int, mixed> = null

The job this rule was created from

Return values
mixed

__toString()

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

public __toString() : string
Return values
string

disable()

public disable() : mixed
Return values
mixed

enable()

public enable() : mixed
Return values
mixed

equals()

Checks if this rule is equal to another one

public equals(Rule $rule) : bool

Ignores whether either of the rules is disabled.

Parameters
$rule : Rule

The rule to check against

Return values
bool

Whether the rules are equal

getJob()

public getJob() : mixed
Return values
mixed

getLiterals()

public getLiterals() : mixed
Return values
mixed

getPrettyString()

public getPrettyString(Pool $pool[, array<string|int, mixed> $installedMap = array() ]) : mixed
Parameters
$pool : Pool
$installedMap : array<string|int, mixed> = array()
Return values
mixed

getReason()

public getReason() : mixed
Return values
mixed

getReasonData()

public getReasonData() : mixed
Return values
mixed

getRequiredPackage()

public getRequiredPackage() : mixed
Return values
mixed

getType()

public getType() : mixed
Return values
mixed

isAssertion()

public isAssertion() : mixed
Return values
mixed

isDisabled()

public isDisabled() : mixed
Return values
mixed

isEnabled()

public isEnabled() : mixed
Return values
mixed

setType()

public setType(mixed $type) : mixed
Parameters
$type : mixed
Return values
mixed

formatPackagesUnique()

protected formatPackagesUnique(Pool $pool, array<string|int, mixed> $packages) : string
Parameters
$pool : Pool
$packages : array<string|int, mixed>
Return values
string

Search results