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

NearbyVenuesQuery::queryName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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