Destroy::typeSerialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This phpFile is auto-generated.
5
 */
6
7
declare(strict_types=1);
8
9
namespace AurimasNiekis\TdLibSchema;
10
11
/**
12
 * Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent.
13
 */
14
class Destroy extends TdFunction
15
{
16
    public const TYPE_NAME = 'destroy';
17
18
    public function __construct()
19
    {
20
    }
21
22
    public static function fromArray(array $array): Destroy
0 ignored issues
show
Unused Code introduced by
The parameter $array is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
    public static function fromArray(/** @scrutinizer ignore-unused */ array $array): Destroy

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
    {
24
        return new static();
25
    }
26
27
    public function typeSerialize(): array
28
    {
29
        return ['@type' => static::TYPE_NAME];
30
    }
31
}
32