PlusCode::getGlobalCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Geocoder package.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT License
11
 */
12
13
namespace Geocoder\Provider\GoogleMapsPlaces\Model;
14
15
/**
16
 * @author atymic <[email protected]>
17
 */
18
class PlusCode
19
{
20
    /**
21
     * @var string
22
     */
23
    private $globalCode;
24
25
    /**
26
     * @var string
27
     */
28
    private $compoundCode;
29
30
    /**
31
     * @param string $globalCode
32
     * @param string $compoundCode
33
     */
34
    public function __construct(string $globalCode, string $compoundCode)
35
    {
36
        $this->globalCode = $globalCode;
37
        $this->compoundCode = $compoundCode;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getGlobalCode(): string
44
    {
45
        return $this->globalCode;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getCompoundCode(): string
52
    {
53
        return $this->compoundCode;
54
    }
55
}
56