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 ( edcebb...bcefff )
by Eric
03:10
created

Time::setText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 4
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Ivory Google Map package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\GoogleMap\Service\Base;
13
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17 View Code Duplication
class Time
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
18
{
19
    /**
20
     * @var \DateTime
21
     */
22
    private $value;
23
24
    /**
25
     * @var string
26
     */
27
    private $timeZone;
28
29
    /**
30
     * @var string
31
     */
32
    private $text;
33
34
    /**
35
     * @param \DateTime $value
36
     * @param string    $timeZone
37
     * @param string    $text
38
     */
39
    public function __construct(\DateTime $value, $timeZone, $text)
40
    {
41
        $this->setValue($value);
42
        $this->setTimeZone($timeZone);
43
        $this->setText($text);
44
    }
45
46
    /**
47
     * @return \DateTime
48
     */
49
    public function getValue()
50
    {
51
        return $this->value;
52
    }
53
54
    /**
55
     * @param \DateTime $value
56
     */
57
    public function setValue(\DateTime $value)
58
    {
59
        $this->value = $value;
60
    }
61
62
    /**
63
     * @return string
64
     */
65
    public function getTimeZone()
66
    {
67
        return $this->timeZone;
68
    }
69
70
    /**
71
     * @param string $timeZone
72
     */
73
    public function setTimeZone($timeZone)
74
    {
75
        $this->timeZone = $timeZone;
76
    }
77
78
    /**
79
     * @return string
80
     */
81
    public function getText()
82
    {
83
        return $this->text;
84
    }
85
86
    /**
87
     * @param string $text
88
     */
89
    public function setText($text)
90
    {
91
        $this->text = $text;
92
    }
93
}
94