GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( e9c651...e1baf6 )
by Christian
02:19
created

LifecycleDateTimeTrait   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 7
dl 0
loc 50
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getUpdatedAt() 0 3 1
A getCreatedAt() 0 3 1
A setUpdatedAt() 0 3 1
A setCreatedAt() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * (c) Christian Gripp <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Core23\Doctrine\Model\Traits;
13
14
trait LifecycleDateTimeTrait
15
{
16
    /**
17
     * @var \DateTime|null
18
     */
19
    protected $createdAt;
20
21
    /**
22
     * @var \DateTime|null
23
     */
24
    protected $updatedAt;
25
26
    /**
27
     * Set createdAt.
28
     *
29
     * @param \DateTime|null $createdAt
30
     */
31
    public function setCreatedAt(?\DateTime $createdAt): void
32
    {
33
        $this->createdAt = $createdAt;
34
    }
35
36
    /**
37
     * Get createdAt.
38
     *
39
     * @return \DateTime|null
40
     */
41
    public function getCreatedAt(): ?\DateTime
42
    {
43
        return $this->createdAt;
44
    }
45
46
    /**
47
     * Set modifiedAt.
48
     *
49
     * @param \DateTime|null $updatedAt
50
     */
51
    public function setUpdatedAt(?\DateTime $updatedAt): void
52
    {
53
        $this->updatedAt = $updatedAt;
54
    }
55
56
    /**
57
     * Get modifiedAt.
58
     *
59
     * @return \DateTime|null
60
     */
61
    public function getUpdatedAt(): ?\DateTime
62
    {
63
        return $this->updatedAt;
64
    }
65
}
66