Skip to content

Commit c74aa81

Browse files
committed
Added a meta data container.
1 parent a398d8f commit c74aa81

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
/**
3+
* @package Mods
4+
* @subpackage Screenshots
5+
*/
6+
7+
declare(strict_types=1);
8+
9+
namespace CPMDB\Mods\Mod\Screenshots;
10+
11+
/**
12+
* Single entry of screenshot metadata from the
13+
* screenshot sidecar file.
14+
*
15+
* @package Mods
16+
* @subpackage Screenshots
17+
*/
18+
class ScreenshotMetaData
19+
{
20+
private string $screenshotID;
21+
private string $title;
22+
23+
public function __construct(string $screenshotID, string $title)
24+
{
25+
$this->screenshotID = $screenshotID;
26+
$this->title = $title;
27+
}
28+
29+
public function getScreenshotID() : string
30+
{
31+
return $this->screenshotID;
32+
}
33+
34+
public function getTitle() : string
35+
{
36+
return $this->title;
37+
}
38+
}

0 commit comments

Comments
 (0)