Passed
Push — main ( 1e3b41...5f13e5 )
by Miaad
11:27
created

inputSticker   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 32
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 CURLFile;
6
use stdClass;
7
8
/**
9
 * This object describes a sticker to be added to a sticker set.
10
 */
11
class inputSticker 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 = ['sticker' => 'BPT\types\inputFile', 'mask_position' => 'BPT\types\maskPosition'];
14
15
    /**
16
     * The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass
17
     * an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using
18
     * multipart/form-data. Animated and video stickers can't be uploaded via HTTP URL. More information on Sending
19
     * Files »
20
     */
21
    public string|CURLFile $sticker;
22
23
    /**
24
     * List of 1-20 emoji associated with the sticker
25
     * @var string[]
26
     */
27
    public array $emoji_list;
28
29
    /** Optional. Position where the mask should be placed on faces. For “mask” stickers only. */
30
    public maskPosition $mask_position;
31
32
    /**
33
     * Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For
34
     * “regular” and “custom_emoji” stickers only.
35
     * @var string[]
36
     */
37
    public array $keywords;
38
39
40
    public function __construct(stdClass|null $object = null) {
41
        if ($object != null) {
42
            parent::__construct($object, self::subs);
43
        }
44
    }
45
}
46