CallState::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
 * Describes the current call state.
13
 */
14
class CallState extends TdObject
15
{
16
    public const TYPE_NAME = 'CallState';
17
18
    public function __construct()
19
    {
20
    }
21
22
    public static function fromArray(array $array): CallState
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): CallState

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