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 — distance-matrix-element ( 10c3f9 )
by Eric
03:00
created

Fare::getText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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
class Fare
18
{
19
    /**
20
     * @var string|null
21
     */
22
    private $currency;
23
24
    /**
25
     * @var float|null
26
     */
27
    private $value;
28
29
    /**
30
     * @var string|null
31
     */
32
    private $text;
33
34
    /**
35
     * @return bool
36
     */
37
    public function hasCurrency()
38
    {
39
        return $this->currency !== null;
40
    }
41
42
    /**
43
     * @return string|null
44
     */
45
    public function getCurrency()
46
    {
47
        return $this->currency;
48
    }
49
50
    /**
51
     * @param string|null $currency
52
     */
53
    public function setCurrency($currency)
54
    {
55
        $this->currency = $currency;
56
    }
57
58
    /**
59
     * @return bool
60
     */
61
    public function hasValue()
62
    {
63
        return $this->value !== null;
64
    }
65
66
    /**
67
     * @return float|null
68
     */
69
    public function getValue()
70
    {
71
        return $this->value;
72
    }
73
74
    /**
75
     * @param float|null $value
76
     */
77
    public function setValue($value)
78
    {
79
        $this->value = $value;
80
    }
81
82
    /**
83
     * @return bool
84
     */
85
    public function hasText()
86
    {
87
        return $this->text !== null;
88
    }
89
90
    /**
91
     * @return string|null
92
     */
93
    public function getText()
94
    {
95
        return $this->text;
96
    }
97
98
    /**
99
     * @param string|null $text
100
     */
101
    public function setText($text)
102
    {
103
        $this->text = $text;
104
    }
105
}
106