Passed
Pull Request — develop (#8)
by BENARD
02:59
created

Game::setNbPostDay()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VideoGamesRecords\DwhBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
use VideoGamesRecords\DwhBundle\Repository\GameRepository;
9
use VideoGamesRecords\CoreBundle\Traits as VgrCoreTraits;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\CoreBundle\Traits was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
use VideoGamesRecords\DwhBundle\Traits\Entity\DateTrait;
11
use VideoGamesRecords\DwhBundle\Traits\Entity\NbPostDay;
12
13
#[ORM\Table(name:'dwh_game')]
14
#[ORM\Entity(repositoryClass: GameRepository::class)]
15
class Game
16
{
17
    use DateTrait;
18
    use NbPostDay;
19
    use VgrCoreTraits\Entity\NbPostTrait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\CoreBu...aits\Entity\NbPostTrait was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
20
21
    #[ORM\Id, ORM\Column]
22
    private ?int $id;
23
24
    public function __toString()
25
    {
26
        return sprintf('%s [%s]', $this->id, $this->id);
27
    }
28
29
    public function setId(int $id): void
30
    {
31
        $this->id = $id;
32
    }
33
34
    public function getId(): ?int
35
    {
36
        return $this->id;
37
    }
38
39
    public function setFromArray(array $row): void
40
    {
41
        foreach ($row as $key => $value) {
42
            $this->$key = $value;
43
        }
44
    }
45
}
46