UpDownResult::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 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
}