UpDownResult   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 26
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getData() 0 4 1
1
<?php
2
/**
3
 * Copyright (c) 2019 - present
4
 * updown - UpDownResult.php
5
 * author: Roberto Belotti - [email protected]
6
 * web : robertobelotti.com, github.com/biscolab
7
 * Initial version created on: 15/2/2019
8
 * MIT license: https://github.com/biscolab/updown-php/blob/master/LICENSE
9
 */
10
11
namespace Biscolab\UpDown\Http;
12
13
/**
14
 * Class UpDownResult
15
 * @package Biscolab\UpDown\Http
16
 */
17
class UpDownResult
18
{
19
20
    /**
21
     * @var array
22
     */
23
    protected $data = [];
24
25
    /**
26
     * UpDownResult constructor.
27
     *
28
     * @param array $data
29
     */
30
    public function __construct(array $data = [])
31
    {
32
33
        $this->data = $data;
34
    }
35
36
    /**
37
     * @return array
38
     */
39
    public function getData(): array
40
    {
41
42
        return $this->data;
43
    }
44
}