| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function handle(): void |
||
| 25 | { |
||
| 26 | $list = $this->getScoreToDesactivate(); |
||
| 27 | $statut = $this->em->getReference( |
||
| 28 | 'VideoGamesRecords\CoreBundle\Entity\PlayerChartStatus', |
||
| 29 | PlayerChartStatus::ID_STATUS_NOT_PROOVED |
||
| 30 | ); |
||
| 31 | /** @var PlayerChart $playerChart */ |
||
| 32 | foreach ($list as $playerChart) { |
||
| 33 | $playerChart->setStatus($statut); |
||
| 34 | } |
||
| 35 | $this->em->flush(); |
||
| 36 | } |
||
| 57 |