2018-11-20 12:52:24 +00:00
|
|
|
<?php
|
2022-04-15 11:34:01 +00:00
|
|
|
|
2018-11-20 12:52: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-11-20 12:52:24 +00:00
|
|
|
*/
|
|
|
|
|
2018-12-13 09:40:27 +00:00
|
|
|
namespace OCA\Social\Model\ActivityPub\Activity;
|
2018-11-20 12:52:24 +00:00
|
|
|
|
|
|
|
use JsonSerializable;
|
2018-12-13 09:40:27 +00:00
|
|
|
use OCA\Social\Model\ActivityPub\ACore;
|
2018-11-20 12:52:24 +00:00
|
|
|
|
|
|
|
/**
|
2018-12-13 09:40:27 +00:00
|
|
|
* Class Update
|
2018-11-20 12:52:24 +00:00
|
|
|
*
|
|
|
|
* @package OCA\Social\Model\ActivityPub\Activity
|
|
|
|
*/
|
2018-12-13 09:40:27 +00:00
|
|
|
class Update extends ACore implements JsonSerializable {
|
2022-04-15 11:34:01 +00:00
|
|
|
public const TYPE = 'Update';
|
2018-11-20 12:52:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
2018-12-13 09:40:27 +00:00
|
|
|
* Update constructor.
|
2018-11-20 12:52:24 +00:00
|
|
|
*
|
|
|
|
* @param ACore $parent
|
|
|
|
*/
|
|
|
|
public function __construct($parent = null) {
|
|
|
|
parent::__construct($parent);
|
|
|
|
|
|
|
|
$this->setType(self::TYPE);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array $data
|
|
|
|
*/
|
|
|
|
public function import(array $data) {
|
|
|
|
parent::import($data);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function jsonSerialize(): array {
|
|
|
|
return array_merge(
|
|
|
|
parent::jsonSerialize(),
|
|
|
|
[
|
|
|
|
]
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|