PlusCode   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
eloc 7
c 1
b 0
f 1
dl 0
loc 36
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getGlobalCode() 0 3 1
A __construct() 0 4 1
A getCompoundCode() 0 3 1
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