Completed
Push — master ( f352a0...b6a995 )
by Bryan
03:47
created

wind::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
namespace Bhhaskin\WeatherBee\Util;
3
4
use Bhhaskin\WeatherBee\Util\Unit;
5
6
/**
7
 * Class of handling wind.
8
 */
9
class wind
10
{
11
    /**
12
     * Wind speed.
13
     * @var Unit
14
     */
15
    public $speed;
16
17
    /**
18
     * Wind direction.
19
     * @var string
20
     */
21
    public $direction;
22
23
    /**
24
     * Create Wind object.
25
     * @param Unit   $speed     Wind speed.
26
     * @param string $direction Wind direction
27
     */
28
    public function __construct(Unit $speed, string $direction)
29
    {
30
        $this->speed = $speed;
31
        $this->direction = $direction;
32
    }
33
}
34