encryptedCredentials   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 2
1
<?php
2
3
namespace BPT\types;
4
5
use stdClass;
6
7
/**
8
 * Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport
9
 * Documentation for a complete description of the data decryption and authentication processes.
10
 */
11
class encryptedCredentials extends types {
0 ignored issues
show
Bug introduced by
The type BPT\types\types was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
    /** Keep all of properties which has sub properties */
13
    private const subs = [];
14
15
    /**
16
     * Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for
17
     * EncryptedPassportElement decryption and authentication
18
     */
19
    public string $data;
20
21
    /** Base64-encoded data hash for data authentication */
22
    public string $hash;
23
24
    /** Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption */
25
    public string $secret;
26
27
28
    public function __construct(stdClass|null $object = null) {
29
        if ($object != null) {
30
            parent::__construct($object, self::subs);
31
        }
32
    }
33
}
34