GeoCoordinates   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 61
ccs 10
cts 10
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setLatitude() 0 6 1
A getLatitude() 0 4 1
A setLongitude() 0 6 1
A getLongitude() 0 4 1
1
<?php
2
3
/*
4
 * This class was automatically generated.
5
 */
6
7
namespace JobApis\Jobs\Client\Schema\Entity;
8
9
/**
10
 * The geographic coordinates of a place or event.
11
 *
12
 * @see http://schema.org/GeoCoordinates Documentation on Schema.org
13
 */
14
class GeoCoordinates extends StructuredValue
15
{
16
    /**
17
     * @var string The latitude of a location. For example `37.42242`
18
     ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).
19
     */
20
    protected $latitude;
21
    /**
22
     * @var string The longitude of a location. For example `-122.08585`
23
     ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).
24
     */
25
    protected $longitude;
26
27
    /**
28
     * Sets latitude.
29
     *
30
     * @param string $latitude
31
     *
32
     * @return $this
33
     */
34 2
    public function setLatitude($latitude)
35
    {
36 2
        $this->latitude = $latitude;
37
38 2
        return $this;
39
    }
40
41
    /**
42
     * Gets latitude.
43
     *
44
     * @return string
45
     */
46 2
    public function getLatitude()
47
    {
48 2
        return $this->latitude;
49
    }
50
51
    /**
52
     * Sets longitude.
53
     *
54
     * @param string $longitude
55
     *
56
     * @return $this
57
     */
58 2
    public function setLongitude($longitude)
59
    {
60 2
        $this->longitude = $longitude;
61
62 2
        return $this;
63
    }
64
65
    /**
66
     * Gets longitude.
67
     *
68
     * @return string
69
     */
70 2
    public function getLongitude()
71
    {
72 2
        return $this->longitude;
73
    }
74
}
75