Completed
Pull Request — master (#76)
by Alex
02:36
created

Wind   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 26
ccs 0
cts 5
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .
4
 *
5
 * @license MIT
6
 *
7
 * Please see the LICENSE file distributed with this source code for further
8
 * information regarding copyright and licensing.
9
 *
10
 * Please visit the following links to read about the usage policies and the license of
11
 * OpenWeatherMap before using this class:
12
 *
13
 * @see http://www.OpenWeatherMap.org
14
 * @see http://www.OpenWeatherMap.org/terms
15
 * @see http://openweathermap.org/appid
16
 */
17
18
namespace Cmfcmf\OpenWeatherMap\Util;
19
20
/**
21
 * The wind class representing a wind object.
22
 */
23
class Wind
24
{
25
    /**
26
     * @var Unit The wind speed.
27
     */
28
    public $speed;
29
30
    /**
31
     * @var Unit The wind direction.
32
     */
33
    public $direction;
34
35
    /**
36
     * Create a new wind object.
37
     *
38
     * @param Unit $speed     The wind speed.
39
     * @param Unit $direction The wind direction.
40
     *
41
     * @internal
42
     */
43
    public function __construct(Unit $speed, Unit $direction)
44
    {
45
        $this->speed = $speed;
46
        $this->direction = $direction;
47
    }
48
}
49