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.
Completed
Pull Request — master (#246)
by Asmir
02:26
created

Embedded::getMetadata()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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