| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | 5 | public function __construct(array $directions){ |
|
| 13 | 5 | foreach($directions as $key => $direction){ |
|
| 14 | 5 | $name = $direction['name']; |
|
| 15 | 5 | $minDegree = $direction['degree']['min']; |
|
| 16 | 5 | $maxDegree = $direction['degree']['max']; |
|
| 17 | 5 | $this->directions[]= new DirectionEntity($key,$name,$minDegree,$maxDegree); |
|
| 18 | 5 | } |
|
| 19 | 5 | } |
|
| 20 | /** |
||
| 28 | } |