ForecastItemInterface
last analyzed

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 51

8 Methods

Rating   Name   Duplication   Size   Complexity  
getSummary() 0 1 ?
getTemperature() 0 1 ?
getWind() 0 1 ?
getHumidity() 0 1 ?
getPrecipitation() 0 1 ?
getIcon() 0 1 ?
__toString() 0 1 ?
setData() 0 1 ?
1
<?php
2
/**
3
 *
4
 * PHP version 5.5
5
 *
6
 * @package Forecast
7
 * @author  Sergey V.Kuzin <[email protected]>
8
 * @license MIT
9
 */
10
11
namespace Forecast;
12
13
14
use Forecast\Model\Humidity;
15
use Forecast\Model\Precipitation;
16
use Forecast\Model\Temperature;
17
use Forecast\Model\Wind;
18
19
interface ForecastItemInterface
20
{
21
    /**
22
     * @api
23
     *
24
     * @return string
25
     */
26
    public function getSummary();
27
28
    /**
29
     * @api
30
     *
31
     * @return Temperature
32
     */
33
    public function getTemperature(): Temperature;
34
35
    /**
36
     * @api
37
     *
38
     * @return Wind
39
     */
40
    public function getWind(): Wind;
41
42
    /**
43
     * @return Humidity
44
     */
45
    public function getHumidity();
46
47
    /**
48
     * @return Precipitation
49
     */
50
    public function getPrecipitation();
51
52
    /**
53
     * @return string
54
     */
55
    public function getIcon(): string;
56
57
    /**
58
     * @api
59
     *
60
     * @return string
61
     */
62
    public function __toString();
63
64
    /**
65
     * @param array $data
66
     * @return ForecastItemInterface
67
     */
68
    public function setData(array $data): self;
69
}
70