Passed
Push — main ( 23165f...4af278 )
by Miaad
01:25
created

chatInviteLink   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 12
dl 0
loc 40
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
namespace BPT\types;
4
5
use stdClass;
6
7
/**
8
 * Represents an invite link for a chat.
9
 */
10
class chatInviteLink 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 of properties which has sub properties */
12
	private const subs = ['creator' => 'BPT\types\user'];
13
14
	/**
15
	 * The invite link. If the link was created by another chat administrator, then the second part of the link will
16
	 * be replaced with “…”.
17
	 */
18
	public string $invite_link;
19
20
	/** Creator of the link */
21
	public user $creator;
0 ignored issues
show
Bug introduced by
The type BPT\types\user 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...
22
23
	/** True, if users joining the chat via the link need to be approved by chat administrators */
24
	public bool $creates_join_request;
25
26
	/** True, if the link is primary */
27
	public bool $is_primary;
28
29
	/** True, if the link is revoked */
30
	public bool $is_revoked;
31
32
	/** Optional. Invite link name */
33
	public string $name;
34
35
	/** Optional. Point in time (Unix timestamp) when the link will expire or has been expired */
36
	public int $expire_date;
37
38
	/**
39
	 * Optional. Maximum number of users that can be members of the chat simultaneously after joining the chat via
40
	 * this invite link; 1-99999
41
	 */
42
	public int $member_limit;
43
44
	/** Optional. Number of pending join requests created using this link */
45
	public int $pending_join_request_count;
46
47
48
	public function __construct(stdClass $update) {
49
		parent::__construct($update, self::subs);
50
	}
51
}
52