f7cloud_client/apps/photos/lib/Album/AlbumFile.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

44 lines
739 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\Album;
use OCA\Photos\DB\PhotosFile;
class AlbumFile extends PhotosFile {
public function __construct(
int $fileId,
string $name,
string $mimeType,
int $size,
int $mtime,
string $etag,
private readonly int $added,
private readonly string $owner,
/** @var 'user'|'filters' */
public readonly string $origin,
) {
parent::__construct(
$fileId,
$name,
$mimeType,
$size,
$mtime,
$etag
);
}
public function getAdded(): int {
return $this->added;
}
public function getOwner(): string {
return $this->owner;
}
}