| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function __invoke(array $data): Player |
||
| 22 | { |
||
| 23 | return new Player( |
||
| 24 | $data['name'], |
||
| 25 | new Health($data['health']), |
||
| 26 | new Etherum($data['etherum']), |
||
| 27 | new Strength($data['strength']), |
||
| 28 | new TalentCollection([]), |
||
| 29 | new RustyShortSword(), |
||
| 30 | new LevelProgress( |
||
| 31 | new Level($data['levelProgress']['level']), |
||
| 32 | new Experience($data['levelProgress']['currentExperience']), |
||
| 33 | ), |
||
| 34 | new AttributePoints($data['attributePoints']), |
||
| 35 | new TalentPoints($data['talentPoints']), |
||
| 36 | ); |
||
| 39 |