stickerSet   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 9
c 1
b 0
f 1
dl 0
loc 26
rs 10
wmc 2

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
 * This object represents a sticker set.
9
 */
10
class stickerSet 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...
11
    /** Keep all properties which has sub properties */
12
    private const subs = ['array' => ['stickers' => 'BPT\types\sticker'], 'thumbnail' => 'BPT\types\photoSize'];
13
14
    /** Sticker set name */
15
    public string $name;
16
17
    /** Sticker set title */
18
    public string $title;
19
20
    /** Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji” */
21
    public string $sticker_type;
22
23
    /**
24
     * List of all set stickers
25
     * @var sticker[]
26
     */
27
    public array $stickers;
28
29
    /** Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format */
30
    public null|photoSize $thumbnail = null;
31
32
33
    public function __construct(stdClass|null $object = null) {
34
        if ($object != null) {
35
            parent::__construct($object, self::subs);
36
        }
37
    }
38
}
39