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::getXmlElementName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Hateoas\Configuration;
4
5
/**
6
 * @author Adrien Brault <[email protected]>
7
 */
8
class Embedded
9
{
10
    /**
11
     * @var string|mixed
12
     */
13
    private $content;
14
15
    /**
16
     * @var string|null
17
     */
18
    private $xmlElementName;
19
20
    /**
21
     * @var Exclusion|null
22
     */
23
    private $exclusion;
24
25
    /**
26
     * @param string|mixed $content
27
     * @param string|null  $xmlElementName
28
     * @param Exclusion    $exclusion
29
     */
30
    public function __construct($content, $xmlElementName = null, Exclusion $exclusion = null)
31
    {
32
        $this->content        = $content;
33
        $this->xmlElementName = $xmlElementName;
34
        $this->exclusion      = $exclusion;
35
    }
36
37
    /**
38
     * @return mixed|string
39
     */
40
    public function getContent()
41
    {
42
        return $this->content;
43
    }
44
45
    /**
46
     * @return null|string
47
     */
48
    public function getXmlElementName()
49
    {
50
        return $this->xmlElementName;
51
    }
52
53
    /**
54
     * @return Exclusion|null
55
     */
56
    public function getExclusion()
57
    {
58
        return $this->exclusion;
59
    }
60
}
61