Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
6 / 6 |
|
100.00% |
4 / 4 |
CRAP | |
100.00% |
1 / 1 |
ImageContentsLookupStatus | |
100.00% |
6 / 6 |
|
100.00% |
4 / 4 |
4 | |
100.00% |
1 / 1 |
setMimeType | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
setImageContents | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
getMimeType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getImageContents | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\MediaModeration\Status; |
4 | |
5 | use StatusValue; |
6 | |
7 | class ImageContentsLookupStatus extends StatusValue { |
8 | private string $mimeType; |
9 | private string $imageContents; |
10 | |
11 | /** |
12 | * @param string $mimeType |
13 | * @internal |
14 | * @return $this |
15 | */ |
16 | public function setMimeType( string $mimeType ) { |
17 | $this->mimeType = $mimeType; |
18 | return $this; |
19 | } |
20 | |
21 | /** |
22 | * @param string $imageContents |
23 | * @return $this |
24 | * @internal |
25 | */ |
26 | public function setImageContents( string $imageContents ) { |
27 | $this->imageContents = $imageContents; |
28 | return $this; |
29 | } |
30 | |
31 | /** |
32 | * Gets the mime type for the image contents found by |
33 | * MediaModerationFileContentsLookup::getImageContents. |
34 | * |
35 | * @return string |
36 | */ |
37 | public function getMimeType(): string { |
38 | return $this->mimeType; |
39 | } |
40 | |
41 | /** |
42 | * Gets the image contents as found by |
43 | * MediaModerationFileContentsLookup::getImageContents. |
44 | * |
45 | * @return string |
46 | */ |
47 | public function getImageContents(): string { |
48 | return $this->imageContents; |
49 | } |
50 | } |