DeviceToken::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
 * Represents a data needed to subscribe for push notifications through registerDevice method. To use specific push notification service, you must specify the correct application platform and upload valid server authentication data at https://my.telegram.org.
13
 */
14
class DeviceToken extends TdObject
15
{
16
    public const TYPE_NAME = 'DeviceToken';
17
18
    public function __construct()
19
    {
20
    }
21
22
    public static function fromArray(array $array): DeviceToken
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): DeviceToken

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