Total Complexity | 10 |
Total Lines | 100 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
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() |
||
99 | } |
||
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | public function setOwner($owner): void |
||
107 | } |
||
108 | } |
||
109 |