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

contact   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 26
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
 * This object represents a phone contact.
9
 */
10
class contact 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 = [];
13
14
	/** Contact's phone number */
15
	public string $phone_number;
16
17
	/** Contact's first name */
18
	public string $first_name;
19
20
	/** Optional. Contact's last name */
21
	public string $last_name;
22
23
	/**
24
	 * Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some
25
	 * programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant
26
	 * bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
27
	 */
28
	public int $user_id;
29
30
	/** Optional. Additional data about the contact in the form of a vCard */
31
	public string $vcard;
32
33
34
	public function __construct(stdClass $update) {
35
		parent::__construct($update, self::subs);
36
	}
37
}
38