GameMethodsTrait::setGame()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VideoGamesRecords\CoreBundle\Traits\Entity\Game;
6
7
use VideoGamesRecords\CoreBundle\Entity\Game;
8
9
trait GameMethodsTrait
10
{
11
    public function setGame(Game $game): void
12
    {
13
        $this->game = $game;
0 ignored issues
show
Bug Best Practice introduced by
The property game does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
14
    }
15
16
    public function getGame(): Game
17
    {
18
        return $this->game;
19
    }
20
}
21