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

wind   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 25
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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