| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function setPlayerDefaultValues(PlayerVersion $version, PositionInterface $position): ?PlayerVersion |
||
| 25 | { |
||
| 26 | $version->setCharacteristics($position->getCharacteristics()) |
||
| 27 | ->setActions([ |
||
| 28 | 'td' => 0, |
||
| 29 | 'cas' => 0, |
||
| 30 | 'pas' => 0, |
||
| 31 | 'int' => 0, |
||
| 32 | 'mvp' => 0, |
||
| 33 | ]) |
||
| 34 | ->setSkills($position->getSkills()) |
||
| 35 | ->setValue($position->getCost()) |
||
| 36 | ->setSppLevel($this->getSppLevel($version)); |
||
|
|
|||
| 37 | |||
| 38 | return $version; |
||
| 39 | } |
||
| 41 |