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.

Image   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 113
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 17
c 1
b 0
f 1
dl 0
loc 113
rs 10
wmc 11

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A getOwner() 0 3 1
A setOwner() 0 3 1
A getFile() 0 3 1
A hasPath() 0 3 1
A setType() 0 3 1
A setPath() 0 3 1
A getType() 0 3 1
A getPath() 0 3 1
A setFile() 0 3 1
A hasFile() 0 3 1
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 mixed
11
     */
12
    protected $id;
13
14
    /**
15
     * @var string|null
16
     */
17
    protected $type;
18
19
    /**
20
     * @var \SplFileInfo|null
21
     */
22
    protected $file;
23
24
    /**
25
     * @var string|null
26
     */
27
    protected $path;
28
29
    /**
30
     * @var object|null
31
     */
32
    protected $owner;
33
34
    /**
35
     * @return int
36
     */
37
    public function getId()
38
    {
39
        return $this->id;
40
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function getType(): ?string
46
    {
47
        return $this->type;
48
    }
49
50
    /**
51
     * {@inheritdoc}
52
     */
53
    public function setType(?string $type): void
54
    {
55
        $this->type = $type;
56
    }
57
58
    /**
59
     * {@inheritdoc}
60
     */
61
    public function getFile(): ?\SplFileInfo
62
    {
63
        return $this->file;
64
    }
65
66
    /**
67
     * {@inheritdoc}
68
     */
69
    public function setFile(?\SplFileInfo $file): void
70
    {
71
        $this->file = $file;
72
    }
73
74
    /**
75
     * {@inheritdoc}
76
     */
77
    public function hasFile(): bool
78
    {
79
        return null !== $this->file;
80
    }
81
82
    /**
83
     * {@inheritdoc}
84
     */
85
    public function getPath(): ?string
86
    {
87
        return $this->path;
88
    }
89
90
    /**
91
     * {@inheritdoc}
92
     */
93
    public function setPath(?string $path): void
94
    {
95
        $this->path = $path;
96
    }
97
98
    /**
99
     * {@inheritdoc}
100
     */
101
    public function hasPath(): bool
102
    {
103
        return null !== $this->path;
104
    }
105
106
    /**
107
     * {@inheritdoc}
108
     */
109
    public function getOwner()
110
    {
111
        return $this->owner;
112
    }
113
114
    /**
115
     * {@inheritdoc}
116
     */
117
    public function setOwner($owner): void
118
    {
119
        $this->owner = $owner;
120
    }
121
}
122