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.

Embedded::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 4
1
<?php
2
3
namespace Hateoas\Model;
4
5
use Hateoas\Serializer\Metadata\RelationPropertyMetadata;
6
7
/**
8
 * @author Adrien Brault <[email protected]>
9
 */
10
class Embedded
11
{
12
    /**
13
     * @var string
14
     */
15
    private $rel;
16
17
    /**
18
     * @var mixed
19
     */
20
    private $data;
21
22
    /**
23
     * @var string|null
24
     */
25
    private $xmlElementName;
26
27
    /**
28
     * @var RelationPropertyMetadata
29
     */
30
    private $metadata;
31
32
    /**
33
     * @param string $rel
34
     * @param mixed $data
35
     * @param string|null $xmlElementName
36
     * @param RelationPropertyMetadata $metadata
37
     */
38
    public function __construct($rel, $data, RelationPropertyMetadata $metadata, $xmlElementName = null)
39
    {
40
        $this->rel            = $rel;
41
        $this->data           = $data;
42
        $this->metadata       = $metadata;
43
        $this->xmlElementName = $xmlElementName;
44
    }
45
46
    /**
47
     * @return RelationPropertyMetadata
48
     */
49
    public function getMetadata()
50
    {
51
        return $this->metadata;
52
    }
53
54
    /**
55
     * @return mixed
56
     */
57
    public function getData()
58
    {
59
        return $this->data;
60
    }
61
62
    /**
63
     * @return string
64
     */
65
    public function getRel()
66
    {
67
        return $this->rel;
68
    }
69
70
    /**
71
     * @return null|string
72
     */
73
    public function getXmlElementName()
74
    {
75
        return $this->xmlElementName;
76
    }
77
}
78