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   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 41
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getPairedWith() 0 4 1
A createOpen() 0 4 1
A createClose() 0 4 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
}