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
Push — master ( ae1e4e...bda4f4 )
by Nicholas
07:56
created

Mapping   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 40
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getSimple() 0 4 1
A getStandard() 0 6 1
1
<?php
2
3
namespace UCD\Unicode\Character\Properties\LetterCase;
4
5
use UCD\Unicode\Codepoint;
6
7
class Mapping
8
{
9
    /**
10
     * @var Codepoint
11
     */
12
    private $simple;
13
14
    /**
15
     * @var Codepoint[]
16
     */
17
    private $standard;
18
19
    /**
20
     * @param Codepoint $simple
21
     * @param Codepoint[] $standard
22
     */
23
    public function __construct(Codepoint $simple, array $standard)
24
    {
25
        $this->simple = $simple;
26
        $this->standard = $standard;
27
    }
28
29
    /**
30
     * @return Codepoint
31
     */
32
    public function getSimple()
33
    {
34
        return $this->simple;
35
    }
36
37
    /**
38
     * @return Codepoint\Collection|Codepoint[]
39
     */
40
    public function getStandard()
41
    {
42
        return Codepoint\Collection::fromArray(
43
            $this->standard
44
        );
45
    }
46
}