2018-09-28 11:41:24 +00:00
|
|
|
<?php
|
2022-04-15 11:34:01 +00:00
|
|
|
|
2018-09-28 11:41:24 +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
|
2018-09-28 11:41:24 +00:00
|
|
|
*/
|
|
|
|
|
2018-11-19 10:33:34 +00:00
|
|
|
namespace OCA\Social\Model\ActivityPub\Activity;
|
2018-09-28 11:41:24 +00:00
|
|
|
|
|
|
|
use JsonSerializable;
|
2018-11-19 10:33:34 +00:00
|
|
|
use OCA\Social\Model\ActivityPub\ACore;
|
2018-09-28 11:41:24 +00:00
|
|
|
|
2018-11-12 22:55:10 +00:00
|
|
|
/**
|
2018-11-19 10:33:34 +00:00
|
|
|
* Class Accept
|
2018-11-12 22:55:10 +00:00
|
|
|
*
|
2018-11-19 10:33:34 +00:00
|
|
|
* @package OCA\Social\Model\ActivityPub\Activity
|
2018-11-12 22:55:10 +00:00
|
|
|
*/
|
2018-11-19 10:33:34 +00:00
|
|
|
class Accept extends ACore implements JsonSerializable {
|
2022-04-15 11:34:01 +00:00
|
|
|
public const TYPE = 'Accept';
|
2018-11-12 22:55:10 +00:00
|
|
|
|
|
|
|
|
2018-09-28 11:41:24 +00:00
|
|
|
|
|
|
|
/**
|
2018-11-19 10:33:34 +00:00
|
|
|
* Undo constructor.
|
2018-09-28 11:41:24 +00:00
|
|
|
*
|
2018-11-19 10:33:34 +00:00
|
|
|
* @param ACore $parent
|
2018-09-28 11:41:24 +00:00
|
|
|
*/
|
2018-11-19 10:33:34 +00:00
|
|
|
public function __construct($parent = null) {
|
|
|
|
parent::__construct($parent);
|
2018-09-28 11:41:24 +00:00
|
|
|
|
2018-11-19 10:33:34 +00:00
|
|
|
$this->setType(self::TYPE);
|
2018-11-12 22:55:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array $data
|
|
|
|
*/
|
|
|
|
public function import(array $data) {
|
|
|
|
parent::import($data);
|
2018-09-28 11:41:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function jsonSerialize(): array {
|
2018-12-19 01:13:33 +00:00
|
|
|
return parent::jsonSerialize();
|
2018-09-28 11:41:24 +00:00
|
|
|
}
|
|
|
|
}
|