Passed
Pull Request — develop (#8)
by BENARD
09:10
created

Team::getRankPointChart()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
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\TeamRepository;
9
use VideoGamesRecords\DwhBundle\Traits\Entity\DateTrait;
10
use VideoGamesRecords\DwhBundle\Traits\Entity\NbPostDay;
11
12
#[ORM\Table(name:'dwh_team')]
13
#[ORM\Entity(repositoryClass: TeamRepository::class)]
14
class Team
15
{
16
    use DateTrait;
17
    use NbPostDay;
18
    use VgrCoreTraits\Entity\ChartRank0Trait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\DwhBun...\Entity\ChartRank0Trait 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...
19
    use VgrCoreTraits\Entity\ChartRank1Trait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\DwhBun...\Entity\ChartRank1Trait 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
    use VgrCoreTraits\Entity\ChartRank2Trait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\DwhBun...\Entity\ChartRank2Trait 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...
21
    use VgrCoreTraits\Entity\ChartRank3Trait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\DwhBun...\Entity\ChartRank3Trait 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...
22
    use VgrCoreTraits\Entity\PointChartTrait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\DwhBun...\Entity\PointChartTrait 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...
23
    use VgrCoreTraits\Entity\RankPointChartTrait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\DwhBun...ity\RankPointChartTrait 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...
24
    use VgrCoreTraits\Entity\RankMedalTrait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\DwhBun...s\Entity\RankMedalTrait 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...
25
    use VgrCoreTraits\Entity\RankBadgeTrait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\DwhBun...s\Entity\RankBadgeTrait 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...
26
    use VgrCoreTraits\Entity\PointBadgeTrait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\DwhBun...\Entity\PointBadgeTrait 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...
27
    use VgrCoreTraits\Entity\NbMasterBadgeTrait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\DwhBun...tity\NbMasterBadgeTrait 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...
28
    use VgrCoreTraits\Entity\PointGameTrait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\DwhBun...s\Entity\PointGameTrait 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...
29
    use VgrCoreTraits\Entity\RankPointGameTrait;
0 ignored issues
show
Bug introduced by
The type VideoGamesRecords\DwhBun...tity\RankPointGameTrait 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...
30
31
    #[ORM\Id, ORM\Column, ORM\GeneratedValue]
32
    private ?int $id;
33
34
    public function __toString()
35
    {
36
        return sprintf('%s [%s]', $this->id, $this->id);
37
    }
38
39
    public function setId(int $id): void
40
    {
41
        $this->id = $id;
42
    }
43
44
    public function getId(): ?int
45
    {
46
        return $this->id;
47
    }
48
49
    public function setFromArray(array $row): void
50
    {
51
        foreach ($row as $key => $value) {
52
            $this->$key = $value;
53
        }
54
    }
55
}
56