Total Complexity | 11 |
Total Lines | 113 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
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() |
||
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() |
||
112 | } |
||
113 | |||
114 | /** |
||
115 | * {@inheritdoc} |
||
116 | */ |
||
117 | public function setOwner($owner): void |
||
120 | } |
||
121 | } |
||
122 |