venue   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 11
dl 0
loc 32
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 2
1
<?php
2
3
namespace BPT\types;
4
5
use stdClass;
6
7
/**
8
 * This object represents a venue.
9
 */
10
class venue 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 = ['location' => 'BPT\types\location'];
13
14
    /** Venue location. Can't be a live location */
15
    public location $location;
16
17
    /** Name of the venue */
18
    public string $title;
19
20
    /** Address of the venue */
21
    public string $address;
22
23
    /** Optional. Foursquare identifier of the venue */
24
    public null|string $foursquare_id = null;
25
26
    /**
27
     * Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”,
28
     * “arts_entertainment/aquarium” or “food/icecream”.)
29
     */
30
    public null|string $foursquare_type = null;
31
32
    /** Optional. Google Places identifier of the venue */
33
    public null|string $google_place_id = null;
34
35
    /** Optional. Google Places type of the venue. (See supported types.) */
36
    public null|string $google_place_type = null;
37
38
39
    public function __construct(stdClass|null $object = null) {
40
        if ($object != null) {
41
            parent::__construct($object, self::subs);
42
        }
43
    }
44
}
45