Completed
Push — 2.0 ( 0357a9...3fe951 )
by Peter
08:22 queued 10s
created

Player   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 36
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * This file is part of the Happyr Doctrine Specification package.
6
 *
7
 * (c) Tobias Nyholm <[email protected]>
8
 *     Kacper Gunia <[email protected]>
9
 *     Peter Gribanov <[email protected]>
10
 *
11
 * For the full copyright and license information, please view the LICENSE
12
 * file that was distributed with this source code.
13
 */
14
15
namespace tests\Happyr\DoctrineSpecification;
16
17
final class Player
18
{
19
    /**
20
     * @var string
21
     */
22
    public $pseudo;
23
24
    /**
25
     * @var string
26
     */
27
    public $gender;
28
29
    /**
30
     * @var int|null
31
     */
32
    public $points;
33
34
    /**
35
     * @var Game|null
36
     */
37
    public $inGame;
38
39
    /**
40
     * @param string    $pseudo
41
     * @param string    $gender
42
     * @param int|null  $points
43
     * @param Game|null $game
44
     */
45
    public function __construct(string $pseudo, string $gender, ?int $points, ?Game $game = null)
46
    {
47
        $this->pseudo = $pseudo;
48
        $this->gender = $gender;
49
        $this->points = $points;
50
        $this->inGame = $game;
51
    }
52
}
53