class RuleSet implements IteratorAggregate, Countable (View source)

Constants

TYPE_PACKAGE

TYPE_JOB

TYPE_LEARNED

Properties

Rule[] $ruleById READ-ONLY: Lookup table for rule id to rule object
static protected $types
protected $rules
protected $nextRuleId
protected $rulesByHash

Methods

__construct()

No description

add(Rule $rule, $type)

No description

count()

No description

ruleById($id)

No description

getRules()

No description

getIterator()

No description

getIteratorFor($types)

No description

getIteratorWithout($types)

No description

getTypes()

No description

getPrettyString(Pool $pool = null)

No description

__toString()

No description

Details

__construct()

add(Rule $rule, $type)

Parameters

Rule $rule
$type

count()

ruleById($id)

Parameters

$id

getRules()

getIterator()

getIteratorFor($types)

Parameters

$types

getIteratorWithout($types)

Parameters

$types

getTypes()

getPrettyString(Pool $pool = null)

Parameters

Pool $pool

__toString()