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.

Assigned::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace UCD\Unicode\Character\Properties\Normalization\Decomposition;
4
5
use UCD\Unicode\Codepoint;
6
use UCD\Unicode\Character\Properties\Normalization\Decomposition;
7
use UCD\Unicode\Character\Properties\Normalization\DecompositionType;
8
9
class Assigned extends Decomposition
10
{
11
    /**
12
     * @var Codepoint[]
13
     */
14
    private $mappedTo;
15
16
    /**
17
     * @param DecompositionType $type
18
     * @param Codepoint[] $mappedTo
19
     */
20
    public function __construct(DecompositionType $type, array $mappedTo)
21
    {
22
        $this->mappedTo = $mappedTo;
23
24
        parent::__construct($type);
25
    }
26
27
    /**
28
     * @return Codepoint\Collection|Codepoint[]
29
     */
30
    public function getMappedTo()
31
    {
32
        return Codepoint\Collection::fromArray(
33
            $this->mappedTo
34
        );
35
    }
36
}