Completed
Push — master ( 1dc414...34818f )
by Ivannis Suárez
05:25
created

NearbyVenuesQuery::named()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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