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.
Passed
Push — master ( 95c197...564e5e )
by Joni
04:32
created

T61String   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 26
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A _validateString() 0 5 1
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Sop\ASN1\Type\Primitive;
6
7
use Sop\ASN1\Type\PrimitiveString;
8
use Sop\ASN1\Type\UniversalClass;
9
10
/**
11
 * Implements *T61String* type.
12
 */
13
class T61String extends PrimitiveString
14
{
15
    use UniversalClass;
16
17
    /**
18
     * Constructor.
19
     *
20
     * @param string $string
21
     */
22 4
    public function __construct(string $string)
23
    {
24 4
        $this->_typeTag = self::TYPE_T61_STRING;
25 4
        parent::__construct($string);
26 4
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31 4
    protected function _validateString(string $string): bool
32
    {
33
        // allow everything since there's literally
34
        // thousands of allowed characters (16 bit composed characters)
35 4
        return true;
36
    }
37
}
38