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

inputMediaPhoto   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
 * Represents a photo to be sent.
9
 */
10
class inputMediaPhoto 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
	/** Type of the result, must be photo */
15
	public string $type;
16
17
	/**
18
	 * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP
19
	 * URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new
20
	 * one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
21
	 */
22
	public string $media;
23
24
	/** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */
25
	public string $caption;
26
27
	/** Optional. Mode for parsing entities in the photo caption. See formatting options for more details. */
28
	public string $parse_mode;
29
30
	/** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
31
	public array $caption_entities;
32
33
34
	public function __construct(stdClass $update) {
35
		parent::__construct($update, self::subs);
36
	}
37
}
38