Passed
Push — develop ( 1d51ce...e805ec )
by BENARD
06:13
created

GameManager::setProofVideoOnly()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 0
c 0
b 0
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VideoGamesRecords\CoreBundle\Manager;
6
7
use VideoGamesRecords\CoreBundle\Entity\Game;
8
use VideoGamesRecords\CoreBundle\Repository\GameRepository;
9
10
class GameManager
11
{
12
    private GameRepository $gameRepository;
13
14
    public function __construct(GameRepository $gameRepository)
15
    {
16
        $this->gameRepository = $gameRepository;
17
    }
18
19
    /**
20
     * @param Game $game
21
     */
22
    public function maj(Game $game): void
23
    {
24
        $this->gameRepository->maj($game);
25
    }
26
27
    /**
28
     * @param Game $game
29
     */
30
    public function copy(Game $game): void
31
    {
32
        $this->gameRepository->copy($game);
33
    }
34
}
35