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.

T61String   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 21
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 5
    public function __construct(string $string)
21
    {
22 5
        $this->_typeTag = self::TYPE_T61_STRING;
23 5
        parent::__construct($string);
24 5
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29 5
    protected function _validateString(string $string): bool
30
    {
31
        // allow everything since there's literally
32
        // thousands of allowed characters (16 bit composed characters)
33 5
        return true;
34
    }
35
}
36