44 lines
739 B
PHP
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;
|
|
}
|
|
}
|