Completed
Push — 1.0-phpstan ( 5ae83f )
by Kamil
27:50
created

Image::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Sylius\Component\Core\Model;
15
16
/**
17
 * @author Grzegorz Sadowski <[email protected]>
18
 */
19
abstract class Image implements ImageInterface
0 ignored issues
show
Coding Style introduced by
Image does not seem to conform to the naming convention (^Abstract).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
20
{
21
    /**
22
     * @var mixed
23
     */
24
    protected $id;
25
26
    /**
27
     * @var string
28
     */
29
    protected $type;
30
31
    /**
32
     * @var \SplFileInfo
33
     */
34
    protected $file;
35
36
    /**
37
     * @var string
38
     */
39
    protected $path;
40
41
    /**
42
     * @var object
43
     */
44
    protected $owner;
45
46
    /**
47
     * @return int
48
     */
49
    public function getId()
50
    {
51
        return $this->id;
52
    }
53
54
    /**
55
     * {@inheritdoc}
56
     */
57
    public function getType(): ?string
58
    {
59
        return $this->type;
60
    }
61
62
    /**
63
     * {@inheritdoc}
64
     */
65
    public function setType(?string $type): void
66
    {
67
        $this->type = $type;
68
    }
69
70
    /**
71
     * {@inheritdoc}
72
     */
73
    public function getFile(): ?\SplFileInfo
74
    {
75
        return $this->file;
76
    }
77
78
    /**
79
     * {@inheritdoc}
80
     */
81
    public function setFile(?\SplFileInfo $file): void
82
    {
83
        $this->file = $file;
84
    }
85
86
    /**
87
     * {@inheritdoc}
88
     */
89
    public function hasFile(): bool
90
    {
91
        return null !== $this->file;
92
    }
93
94
    /**
95
     * {@inheritdoc}
96
     */
97
    public function getPath(): ?string
98
    {
99
        return $this->path;
100
    }
101
102
    /**
103
     * {@inheritdoc}
104
     */
105
    public function setPath(?string $path): void
106
    {
107
        $this->path = $path;
108
    }
109
110
    /**
111
     * {@inheritdoc}
112
     */
113
    public function hasPath(): bool
114
    {
115
        return null !== $this->path;
116
    }
117
118
    /**
119
     * {@inheritdoc}
120
     */
121
    public function getOwner()
122
    {
123
        return $this->owner;
124
    }
125
126
    /**
127
     * {@inheritdoc}
128
     */
129
    public function setOwner($owner): void
130
    {
131
        $this->owner = $owner;
132
    }
133
}
134