|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace BPT\types; |
|
4
|
|
|
|
|
5
|
|
|
use stdClass; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* This object represents a message about a scheduled giveaway. |
|
9
|
|
|
*/ |
|
10
|
|
|
class giveaway extends types { |
|
|
|
|
|
|
11
|
|
|
/** Keep all properties which has sub properties */ |
|
12
|
|
|
private const subs = ['array' => ['chats' => 'BPT\types\chat']]; |
|
13
|
|
|
|
|
14
|
|
|
/** |
|
15
|
|
|
* The list of chats which the user must join to participate in the giveaway |
|
16
|
|
|
* @var chat[] |
|
17
|
|
|
*/ |
|
18
|
|
|
public array $chats; |
|
19
|
|
|
|
|
20
|
|
|
/** Point in time (Unix timestamp) when winners of the giveaway will be selected */ |
|
21
|
|
|
public int $winners_selection_date; |
|
22
|
|
|
|
|
23
|
|
|
/** The number of users which are supposed to be selected as winners of the giveaway */ |
|
24
|
|
|
public int $winner_count; |
|
25
|
|
|
|
|
26
|
|
|
/** Optional. True, if only users who join the chats after the giveaway started should be eligible to win */ |
|
27
|
|
|
public null|bool $only_new_members = null; |
|
28
|
|
|
|
|
29
|
|
|
/** Optional. True, if the list of giveaway winners will be visible to everyone */ |
|
30
|
|
|
public null|bool $has_public_winners = null; |
|
31
|
|
|
|
|
32
|
|
|
/** Optional. Description of additional giveaway prize */ |
|
33
|
|
|
public null|string $prize_description = null; |
|
34
|
|
|
|
|
35
|
|
|
/** |
|
36
|
|
|
* Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible |
|
37
|
|
|
* users for the giveaway must come. If empty, then all users can participate in the giveaway. Users with a phone |
|
38
|
|
|
* number that was bought on Fragment can always participate in giveaways. |
|
39
|
|
|
* @var string[] |
|
40
|
|
|
*/ |
|
41
|
|
|
public null|array $country_codes = null; |
|
42
|
|
|
|
|
43
|
|
|
/** Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for */ |
|
44
|
|
|
public null|int $premium_subscription_month_count = null; |
|
45
|
|
|
|
|
46
|
|
|
|
|
47
|
|
|
public function __construct(stdClass|null $object = null) { |
|
48
|
|
|
if ($object != null) { |
|
49
|
|
|
parent::__construct($object, self::subs); |
|
50
|
|
|
} |
|
51
|
|
|
} |
|
52
|
|
|
} |
|
53
|
|
|
|
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths