GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Document::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Nimble\ElasticBundle;
4
5
class Document 
6
{
7
    /**
8
     * @var int|string
9
     */
10
    private $id;
11
12
    /**
13
     * @var array
14
     */
15
    private $data;
16
17
    /**
18
     * @param string|int $id
19
     * @param array $data
20
     */
21
    public function __construct($id, array $data)
22
    {
23
24
        $this->id = $id;
25
        $this->data = $data;
26
    }
27
28
    /**
29
     * @return int|string
30
     */
31
    public function getId()
32
    {
33
        return $this->id;
34
    }
35
36
    /**
37
     * @return array
38
     */
39
    public function getData()
40
    {
41
        return $this->data;
42
    }
43
}
44