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.

MethodMetadata::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
1
<?php
2
3
namespace Soukicz\ClassMetadataParser\Model;
4
5
class MethodMetadata
6
{
7
8
    /**
9
     * @var string
10
     */
11
    private $name;
12
13
    /**
14
     * @var null|string
15
     */
16
    private $fieldName;
17
18
    /**
19
     * @var ReturnMetadata|null
20
     */
21
    private $return;
22
23
    /**
24
     * @var string|null
25
     */
26
    private $mapping;
27
28
    public function __construct(string $name, ?string $fieldName, ?ReturnMetadata $return, string $mapping = null)
29
    {
30
        $this->name = $name;
31
        $this->fieldName = $fieldName;
32
        $this->return = $return;
33
        $this->mapping = $mapping;
34
    }
35
36
    public function getName(): string
37
    {
38
        return $this->name;
39
    }
40
41
    public function getFieldName(): ?string
42
    {
43
        return $this->fieldName;
44
    }
45
46
    public function getReturn():?ReturnMetadata
47
    {
48
        return $this->return;
49
    }
50
51
    public function getMapping():?string
52
    {
53
        return $this->mapping;
54
    }
55
}
56