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...
24
{
25
/**
26
* The GeoJSON type
27
*
28
* @var string
29
* @ODM\Field(type="string")
30
*/
31
protected $type;
32
33
/**
34
* The GeoJSON coordinates.
35
*
36
* This is an array which format depends on the $type beeing used.
37
*
38
* @var array
39
* @ODM\Collection
40
*/
41
protected $coordinates;
42
43
/**
44
* @param $type
45
*
46
* @return $this
47
*/
48
public function setType($type)
49
{
50
$this->type = $type;
51
52
return $this;
53
}
54
55
/**
56
* @return string
57
*/
58
public function getType()
59
{
60
return $this->type;
61
}
62
63
/**
64
* @param array $coordinates
65
*
66
* @return $this
67
*/
68
public function setCoordinates(array $coordinates)
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.