| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 36 | public function resolve(): array |
|
| 35 | { |
||
| 36 | 36 | $constraints = []; |
|
| 37 | 36 | foreach ($this->annotations as $annotation) { |
|
| 38 | 7 | if ($annotation instanceof Inherit) { |
|
| 39 | 1 | $constraints = array_merge($constraints, $this->getParentConstraints()); |
|
| 40 | 7 | } elseif ($annotation instanceof Constraint) { |
|
| 41 | 7 | $constraints[] = $annotation; |
|
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | 36 | return $constraints; |
|
| 46 | } |
||
| 61 |