mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-14 06:09:45 +02:00
fa5b5f51a4
- rename podlibre to adaures - rename castopod-host to castopod - simplify README and redirect to docs site - move INSTALL and UPDATE docs - add new gitlabci pipeline to deploy docs - upgrade node to v16 in Dockerfile
42 lines
880 B
PHP
42 lines
880 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* This class defines the Object which is the primary base type for the Activity Streams vocabulary.
|
|
*
|
|
* Object is a reserved word in php, so the class is named ObjectType.
|
|
*
|
|
* @copyright 2021 Ad Aures
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace Modules\Fediverse\Core;
|
|
|
|
class ObjectType extends AbstractObject
|
|
{
|
|
/**
|
|
* @var string|string[]
|
|
*/
|
|
protected string | array $context = 'https://www.w3.org/ns/activitystreams';
|
|
|
|
protected string $id;
|
|
|
|
protected string $type = 'Object';
|
|
|
|
protected string $content;
|
|
|
|
protected string $published;
|
|
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
protected array $to = ['https://www.w3.org/ns/activitystreams#Public'];
|
|
|
|
/**
|
|
* @var string[]|null
|
|
*/
|
|
protected ?array $cc = null;
|
|
}
|