Completed
Push — master ( fc7b1e...f39e81 )
by Benedikt
08:37
created

Player::getPlayerId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
rs 10
1
<?php
2
declare(strict_types=1);
3
/**
4
 * Created by PhpStorm.
5
 * User: benedikt
6
 * Date: 9/17/17
7
 * Time: 10:27 AM
8
 */
9
10
namespace Tfboe\FmLib\Entity\Traits;
11
12
13
use Doctrine\ORM\Mapping as ORM;
14
use Tfboe\FmLib\Entity\Helpers\TimestampableEntity;
15
16
17
/**
18
 * Trait Player
19
 * @package Tfboe\FmLib\Entity
20
 */
21
trait Player
22
{
23
  use TimestampableEntity;
24
25
//<editor-fold desc="Fields">
26
27
  /**
28
   * @ORM\Column(type="string", nullable=false)
29
   * @var string
30
   */
31
  private $firstName;
32
33
  /**
34
   * @ORM\Column(type="string", nullable=false)
35
   * @var string
36
   */
37
  private $lastName;
38
39
  /**
40
   * @ORM\Column(type="date", nullable=true)
41
   * @var \DateTime
42
   */
43
  private $birthday;
44
//</editor-fold desc="Fields">
45
46
//<editor-fold desc="Public Methods">
47
  /**
48
   * @return \DateTime
49
   */
50
  public function getBirthday(): \DateTime
51
  {
52
    return $this->birthday;
53
  }
54
55
  /**
56
   * @return string
57
   */
58
  public function getFirstName(): string
59
  {
60
    return $this->firstName;
61
  }
62
63
  /**
64
   * @return string
65
   */
66
  public function getLastName(): string
67
  {
68
    return $this->lastName;
69
  }
70
71
  /**
72
   * @param \DateTime $birthday
73
   */
74
  public function setBirthday(\DateTime $birthday)
75
  {
76
    $this->birthday = $birthday;
77
  }
78
79
  /**
80
   * @param string $firstName
81
   */
82
  public function setFirstName(string $firstName)
83
  {
84
    $this->firstName = $firstName;
85
  }
86
87
  /**
88
   * @param string $lastName
89
   */
90
  public function setLastName(string $lastName)
91
  {
92
    $this->lastName = $lastName;
93
  }
94
//</editor-fold desc="Public Methods">
95
}