summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/Maps/src/DataAccess/GeoJsonFetcherResult.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/Maps/src/DataAccess/GeoJsonFetcherResult.php')
-rw-r--r--www/wiki/extensions/Maps/src/DataAccess/GeoJsonFetcherResult.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/www/wiki/extensions/Maps/src/DataAccess/GeoJsonFetcherResult.php b/www/wiki/extensions/Maps/src/DataAccess/GeoJsonFetcherResult.php
new file mode 100644
index 00000000..7345b649
--- /dev/null
+++ b/www/wiki/extensions/Maps/src/DataAccess/GeoJsonFetcherResult.php
@@ -0,0 +1,31 @@
+<?php
+
+declare( strict_types = 1 );
+
+namespace Maps\DataAccess;
+
+class GeoJsonFetcherResult {
+
+ private $content;
+ private $revisionId;
+ private $source;
+
+ public function __construct( array $content, ?int $revisionId, ?\TitleValue $source ) {
+ $this->content = $content;
+ $this->revisionId = $revisionId;
+ $this->source = $source;
+ }
+
+ public function getContent(): array {
+ return $this->content;
+ }
+
+ public function getTitleValue(): ?\TitleValue {
+ return $this->source;
+ }
+
+ public function getRevisionId(): ?int {
+ return $this->revisionId;
+ }
+
+}