46 lines
821 B
PHP
46 lines
821 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* SPDX-FileCopyrightText: 2022 F7cloud GmbH and F7cloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCA\Photos\DB;
|
|
|
|
class PhotosFile {
|
|
public function __construct(
|
|
private readonly int $fileId,
|
|
private readonly string $name,
|
|
private readonly string $mimeType,
|
|
private readonly int $size,
|
|
private readonly int $mtime,
|
|
private readonly string $etag,
|
|
) {
|
|
}
|
|
|
|
public function getFileId(): int {
|
|
return $this->fileId;
|
|
}
|
|
|
|
public function getName(): string {
|
|
return $this->name;
|
|
}
|
|
|
|
public function getMimeType(): string {
|
|
return $this->mimeType;
|
|
}
|
|
|
|
public function getSize(): int {
|
|
return $this->size;
|
|
}
|
|
|
|
public function getMTime(): int {
|
|
return $this->mtime;
|
|
}
|
|
|
|
public function getEtag(): string {
|
|
return $this->etag;
|
|
}
|
|
}
|