Conditions | 3 |
Paths | 3 |
Total Lines | 20 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function process($label, array $items, array $defaults = array()) |
||
29 | { |
||
30 | $result = array(); |
||
31 | |||
32 | foreach ($items as $constraint => $source) { |
||
33 | if (!$this->valueAnalyser->isConstraint($constraint)) { |
||
34 | continue; |
||
35 | } |
||
36 | |||
37 | $result[] = $this->itemBuilder->createItem( |
||
38 | $label, |
||
39 | $defaults, |
||
40 | array( |
||
41 | PatchDefinition::VERSION => $constraint, |
||
42 | PatchDefinition::SOURCE => $source |
||
43 | ) |
||
44 | ); |
||
45 | } |
||
46 | |||
47 | return $result; |
||
48 | } |
||
50 |