GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ReturnMetadata   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 52
c 0
b 0
f 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getType() 0 4 1
A isBuiltin() 0 4 1
A allowsNull() 0 4 1
A isCollection() 0 4 1
1
<?php
2
namespace Soukicz\ClassMetadataParser\Model;
3
4
class ReturnMetadata
5
{
6
    /**
7
     * @var string
8
     */
9
    private $type;
10
11
    /**
12
     * @var bool
13
     */
14
    private $builtin;
15
16
    /**
17
     * @var bool
18
     */
19
    private $collection;
20
21
    /**
22
     * @var bool
23
     */
24
    private $allowsNull;
25
26
    public function __construct(string $type, bool $builtin, bool $allowsNull, bool $collection)
27
    {
28
        $this->type = $type;
29
        $this->builtin = $builtin;
30
        $this->allowsNull = $allowsNull;
31
        $this->collection = $collection;
32
    }
33
34
    public function getType(): string
35
    {
36
        return $this->type;
37
    }
38
39
    public function isBuiltin(): bool
40
    {
41
        return $this->builtin;
42
    }
43
44
    public function allowsNull(): bool
45
    {
46
        return $this->allowsNull;
47
    }
48
49
    public function isCollection(): bool
50
    {
51
        return $this->collection;
52
    }
53
54
55
}
56