Completed
Push — master ( 6ecc4c...c85972 )
by Ivannis Suárez
11:44
created

NearbyVenuesQuery   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 6
c 2
b 0
f 2
lcom 0
cbo 0
dl 0
loc 64
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A latitude() 0 4 1
A setLatitude() 0 4 1
A longitude() 0 4 1
A setLongitude() 0 4 1
A queryName() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Cubiche package.
4
 *
5
 * Copyright (c) Cubiche
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Cubiche\Core\Bus\Tests\Fixtures\Query;
11
12
use Cubiche\Core\Bus\Query\QueryNamedInterface;
13
14
/**
15
 * NearbyVenuesQuery class.
16
 *
17
 * @author Ivannis Suárez Jerez <[email protected]>
18
 */
19
class NearbyVenuesQuery implements QueryNamedInterface
20
{
21
    /**
22
     * @var float
23
     */
24
    protected $latitude;
25
26
    /**
27
     * @var float
28
     */
29
    protected $longitude;
30
31
    /**
32
     * NearbyVenuesQuery constructor.
33
     *
34
     * @param float $latitude
35
     * @param float $longitude
36
     */
37
    public function __construct($latitude, $longitude)
38
    {
39
        $this->setLatitude($latitude);
40
        $this->setLongitude($longitude);
41
    }
42
43
    /**
44
     * @return float
45
     */
46
    public function latitude()
47
    {
48
        return $this->latitude;
49
    }
50
51
    /**
52
     * @param float $latitude
53
     */
54
    public function setLatitude($latitude)
55
    {
56
        $this->latitude = $latitude;
57
    }
58
59
    /**
60
     * @return float
61
     */
62
    public function longitude()
63
    {
64
        return $this->longitude;
65
    }
66
67
    /**
68
     * @param float $longitude
69
     */
70
    public function setLongitude($longitude)
71
    {
72
        $this->longitude = $longitude;
73
    }
74
75
    /**
76
     * {@inheritdoc}
77
     */
78
    public function queryName()
79
    {
80
        return 'aroundVenues';
81
    }
82
}
83