GameMethodsTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
c 0
b 0
f 0
dl 0
loc 10
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getGame() 0 3 1
A setGame() 0 3 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