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.

Bracket::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace UCD\Unicode\Character\Properties\Bidirectionality;
4
5
use UCD\Unicode\Codepoint;
6
7
abstract class Bracket
8
{
9
    /**
10
     * @var Codepoint
11
     */
12
    private $pairedWith;
13
14
    /**
15
     * @param Codepoint $pairedWith
16
     */
17
    protected function __construct(Codepoint $pairedWith)
18
    {
19
        $this->pairedWith = $pairedWith;
20
    }
21
22
    /**
23
     * @return Codepoint
24
     */
25
    public function getPairedWith()
26
    {
27
        return $this->pairedWith;
28
    }
29
30
    /**
31
     * @param Codepoint $pairedWith
32
     * @return OpenBracket
33
     */
34
    public static function createOpen(Codepoint $pairedWith)
35
    {
36
        return new OpenBracket($pairedWith);
37
    }
38
39
    /**
40
     * @param Codepoint $pairedWith
41
     * @return OpenBracket
42
     */
43
    public static function createClose(Codepoint $pairedWith)
44
    {
45
        return new CloseBracket($pairedWith);
46
    }
47
}