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.
Completed
Push — master ( df4839...0fa3d6 )
by Christian
02:01
created

Event::getVenue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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\LastFm\Model;
13
14
final class Event
15
{
16
    /**
17
     * @var int
18
     */
19
    private $eventId;
20
21
    /**
22
     * @var string
23
     */
24
    private $title;
25
26
    /**
27
     * @var \DateTime
28
     */
29
    private $eventDate;
30
31
    /**
32
     * @var string
33
     */
34
    private $url;
35
36
    /**
37
     * @var Venue|null
38
     */
39
    private $venue;
40
41
    /**
42
     * @param int        $eventId
43
     * @param string     $title
44
     * @param \DateTime  $eventDate
45
     * @param string     $url
46
     * @param Venue|null $venue
47
     */
48
    public function __construct(int $eventId, string $title, \DateTime $eventDate, string $url, ?Venue $venue)
49
    {
50
        $this->eventId   = $eventId;
51
        $this->title     = $title;
52
        $this->eventDate = $eventDate;
53
        $this->url       = $url;
54
        $this->venue     = $venue;
55
    }
56
57
    /**
58
     * @return int
59
     */
60
    public function getEventId(): int
61
    {
62
        return $this->eventId;
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function getTitle(): string
69
    {
70
        return $this->title;
71
    }
72
73
    /**
74
     * @return \DateTime
75
     */
76
    public function getEventDate(): \DateTime
77
    {
78
        return $this->eventDate;
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function getUrl(): ?string
85
    {
86
        return $this->url;
87
    }
88
89
    /**
90
     * @return Venue|null
91
     */
92
    public function getVenue(): ?Venue
93
    {
94
        return $this->venue;
95
    }
96
}
97