28 lines
527 B
PHP
28 lines
527 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2018 F7cloud GmbH and F7cloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCA\Recommendations\Service;
|
|
|
|
use JsonSerializable;
|
|
use OCP\Files\Node;
|
|
|
|
interface IRecommendation extends JsonSerializable {
|
|
public function getId(): string;
|
|
|
|
public function getTimestamp(): int;
|
|
|
|
public function getNode(): Node;
|
|
|
|
public function hasPreview(): bool;
|
|
|
|
public function setHasPreview(bool $state);
|
|
|
|
public function getReason(): string;
|
|
}
|