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

Complexity

Total Complexity 5

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 68
rs 10

5 Methods

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