Composer API
Class

Composer\DependencyResolver\RuleSet

class RuleSet implements IteratorAggregate, Countable

Constants

TYPE_PACKAGE

TYPE_JOB

TYPE_LEARNED

Properties

Rule[] $ruleById READ-ONLY: Lookup table for rule id to rule object

Methods

__construct()

add(Rule $rule, $type)

count()

ruleById($id)

getRules()

getIterator()

getIteratorFor($types)

getIteratorWithout($types)

getTypes()

getPrettyString(Pool $pool = null)

__toString()

Details

at line 44
public __construct()

at line 55
public add(Rule $rule, $type)

Parameters

Rule $rule
$type

at line 99
public count()

at line 104
public ruleById($id)

Parameters

$id

at line 109
public getRules()

at line 114
public getIterator()

at line 119
public getIteratorFor($types)

Parameters

$types

at line 135
public getIteratorWithout($types)

Parameters

$types

at line 150
public getTypes()

at line 158
public getPrettyString(Pool $pool = null)

Parameters

Pool $pool

at line 172
public __toString()