activitypub/src/ContentNation/ActivityPub/Common/Event.php

28 lines
579 B
PHP

<?php
namespace ContentNation\ActivityPub\Common;
require_once("Activity.php");
class Event extends Activity {
public function __construct() {
parent::__construct('Event');
// parent::addContext('https://www.w3.org/ns/activitystreams');
}
/**
* create from json/array
* @param mixed $json
*/
public function fromJson($json) : bool {
return parent::fromJson($json);
}
/**
* convert internal state to php array
* @return array<string,mixed>
*/
public function toObject() {
$return = parent::toObject();
return $return;
}
}