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::allowsNull()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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