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 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

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