2020-09-03 18:49:55 +00:00
|
|
|
<?php
|
2022-04-15 11:34:01 +00:00
|
|
|
|
2020-09-03 18:49:55 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
/**
|
2024-09-08 13:46:22 +00:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-09-03 18:49:55 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace OCA\Social\Model\Client\Options;
|
|
|
|
|
|
|
|
use OCA\Social\Model\ActivityPub\ACore;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class TimelineOptions
|
|
|
|
*
|
|
|
|
* @package OCA\Social\Model\Client\Options
|
|
|
|
*/
|
|
|
|
class CoreOptions {
|
2022-04-15 11:01:18 +00:00
|
|
|
private int $format = ACore::FORMAT_ACTIVITYPUB;
|
2020-09-03 18:49:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getFormat(): int {
|
|
|
|
return $this->format;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $format
|
|
|
|
*
|
|
|
|
* @return CoreOptions
|
|
|
|
*/
|
|
|
|
public function setFormat(int $format): self {
|
|
|
|
$this->format = $format;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
}
|