Cleanup, bugfixes

This commit is contained in:
noccy committed 2022-10-30 23:02:14 +01:00
1 parent c3e651440f
commit 8d6c1800b9
3 files changed
+42 -12

No files matched your search

+9 -1
View File
@@ -11,10 +11,13 @@ class Dataset
protected array $options;
public function __construct(string $identifier, array $options)
protected ?string $version;
public function __construct(string $identifier, array $options, ?string $version=null)
{
$this->identifier = $identifier;
$this->options = $options;
$this->version = $version;
}
public function getIdentifier(): string
@@ -22,6 +25,11 @@ class Dataset
return $this->identifier;
}
public function getVersion(): ?string
{
return $this->version;
}
public function open(): ReaderInterface
{
$filename = $this->options['filename'];