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.
Passed
Push — master ( d79ade...faea90 )
by Odiseo
02:53
created

Image::hasFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\BlogBundle\Model;
6
7
abstract class Image implements ImageInterface
8
{
9
    /**
10
     * @var string|null
11
     */
12
    protected $type;
13
14
    /**
15
     * @var \SplFileInfo|null
16
     */
17
    protected $file;
18
19
    /**
20
     * @var string|null
21
     */
22
    protected $path;
23
24
    /**
25
     * @var object|null
26
     */
27
    protected $owner;
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getType(): ?string
33
    {
34
        return $this->type;
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function setType(?string $type): void
41
    {
42
        $this->type = $type;
43
    }
44
45
    /**
46
     * {@inheritdoc}
47
     */
48
    public function getFile(): ?\SplFileInfo
49
    {
50
        return $this->file;
51
    }
52
53
    /**
54
     * {@inheritdoc}
55
     */
56
    public function setFile(?\SplFileInfo $file): void
57
    {
58
        $this->file = $file;
59
    }
60
61
    /**
62
     * {@inheritdoc}
63
     */
64
    public function hasFile(): bool
65
    {
66
        return null !== $this->file;
67
    }
68
69
    /**
70
     * {@inheritdoc}
71
     */
72
    public function getPath(): ?string
73
    {
74
        return $this->path;
75
    }
76
77
    /**
78
     * {@inheritdoc}
79
     */
80
    public function setPath(?string $path): void
81
    {
82
        $this->path = $path;
83
    }
84
85
    /**
86
     * {@inheritdoc}
87
     */
88
    public function hasPath(): bool
89
    {
90
        return null !== $this->path;
91
    }
92
93
    /**
94
     * {@inheritdoc}
95
     */
96
    public function getOwner()
97
    {
98
        return $this->owner;
99
    }
100
101
    /**
102
     * {@inheritdoc}
103
     */
104
    public function setOwner($owner): void
105
    {
106
        $this->owner = $owner;
107
    }
108
}
109