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   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 39
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getId() 0 4 1
A getData() 0 4 1
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